Add extractor and builder
Tested and working
This commit is contained in:
@ -5,8 +5,6 @@ tags: visual,intermediate
|
||||
|
||||
Adds a fading gradient to an overflowing element to better indicate there is more content to be scrolled.
|
||||
|
||||
#### HTML
|
||||
|
||||
```html
|
||||
<div class="overflow-scroll-gradient">
|
||||
<div class="overflow-scroll-gradient__scroller">
|
||||
@ -22,8 +20,6 @@ Adds a fading gradient to an overflowing element to better indicate there is mor
|
||||
</div>
|
||||
```
|
||||
|
||||
#### CSS
|
||||
|
||||
```css
|
||||
.overflow-scroll-gradient {
|
||||
position: relative;
|
||||
@ -50,8 +46,6 @@ Adds a fading gradient to an overflowing element to better indicate there is mor
|
||||
}
|
||||
```
|
||||
|
||||
#### Demo
|
||||
|
||||
#### Explanation
|
||||
|
||||
1. `position: relative` on the parent establishes a Cartesian positioning context for pseudo-elements.
|
||||
|
||||
Reference in New Issue
Block a user