Skip navigation
CSS position: sticky, scroll-snap + progressively enhanced scroll animation 📜
0:00 / 0:25

CSS position: sticky, scroll-snap + progressively enhanced scroll animation 📜

jhey ʕ•ᴥ•ʔ

@jh3yy148K followers

Visit on X
3,474 likesDownloadOriginal post

366,913 views

CSS position: sticky, scroll-snap + progressively enhanced scroll animation 📜 li { animation: bright; animation-range: calc(50% - 1lh) calc(50% + 1lh); animation-timeline: view(); scroll-snap-align: center; } @​keyframes bright { 50% { opacity: 1; }}

10 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    original concept here on the "forge & form" site 👏 scroll to the bottom 👇 p.s hadn't seen this one on here so couldn't quote it

    50 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    here's the @CodePen for this one 🤙 wanted to get that colorful scrollbar experiment in place first before posting it 🙏 now we hop on a plane ✈️

    87 likes

  • Elliott Johnston's profile picture

    @elliottjohnston

    Here's a similar example I coded up

    6 likes

  • fangjun's profile picture

    @fjun99

    can you share the code example? thanks.

    5 likes

  • Lewis's profile picture

    @WeaverOfTheWeb

    This would be cool as a custom select

    5 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    now that's an idea! 💡

    2 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    like seeing these and want to learn more about how to build awesome UIs for the web? Check out my newsletter, "The Craft of UI" quite the backlog of issues coming 🤙 👉

    5 likes

  • Tyrone C.'s profile picture

    @TyroneC__

    That is so sick 👀

    3 likes

  • Ji @ crypto-cafe (YT)'s profile picture

    @0xCryptoCafe

    can we get an additional level of items? like a 2 tiered mindmap in scrollable style.

    3 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    that would be neat, a two-tiered set would work as well by nesting the "stickiness" would need some sentences to build out with that structure 🤔