跳过导航
Use masks for your scrollable areas
0:00 / 0:21

Use masks for your scrollable areas

define

@define_app1227 位关注者

在 X 上查看
892 个赞下载原帖

49,867 次观看

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.

评论

评论来自 X (Twitter) 上的原帖

暂无评论