Use masks for your scrollable areas
define
Visit on X@define_app1.2K followers
49,867 views
Use masks for your scrollable areas
Use the CSS at-rule `property` to register stops as animatable values. The browser treats your custom property as a `percentage`, so the mask edges transition smoothly.
Result: scroll lists that fade at the edges, revealing content underneath.
No JavaScript needed.
Comments
Comments from the original post on X (Twitter)
No comments yet
