跳过导航
Scroll masking with CSS scroll animation as a progressive enhancement ⭐️
0:00 / 0:41

Scroll masking with CSS scroll animation as a progressive enhancement ⭐️

jhey ʕ•ᴥ•ʔ

@jh3yy15万 位关注者

在 X 上查看
3,435 个赞下载原帖

593,274 次观看

Scroll masking with CSS scroll animation as a progressive enhancement ⭐️ .scroller { animation: mask-up; animation-timeline: scroll(self); animation-range: 0 1rem; mask-composite: exclude; } @​keyframes mask-up { to { mask-size: 100% 120px, 100% 100%; } }

10 条评论

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

  • jhey ▲🐻🎈 的头像

    @jh3yy

    A refresh of this previous demo going through different scroll styles 🤙 (Video compression on that one 🙃) These little details become real fun to create with some of the new stuff we're getting on the <platform> 💯

    31 个赞

  • Nicu Barbaros 的头像

    @nicubarbaros

    How do you make that GUI for config?

    4 个赞

  • ‎‎ dev 的头像

    @_whatistruth_

    man.. did you memorized entire mdn web docs? 😂

    4 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

    Haha - Feels like it sometimes 😅

    3 个赞

  • rose :3 的头像

    @ionizing

    super small thing, but personally i think i'd prefer if the scrollbar itself wasn't getting masked,, i feel like it'd be more cohesive

    3 个赞

  • Mario Souto - DevSoutinho 的头像

    @omariosouto

    How to you record the videos? 👀

    1 个赞

  • AlexIsMaking 的头像

    @AlexIsMaking

    Yes! This would also be a really cool effect to apply to an automatically scrolling list of items e.g. quotes 👀

  • Derrick 的头像

    @uxderrick

    Have you done a video for the blur effect on the scroll?

  • ƨergey 的头像

    @0xbdrtsky

    Could you share a codepen plz?

  • eeee 的头像

    @chentao_007

    @readwise save thread