Skip navigation
Future CSS Tip! 🔮 You can power list animations like you would using IntersectionObserver with CSS…
0:00 / 0:54

Future CSS Tip! 🔮 You can power list animations like you would using IntersectionObserver with CSS…

jhey ʕ•ᴥ•ʔ

@jh3yy148K followers

Visit on X
2,492 likesDownloadOriginal post

434,145 views

Future CSS Tip! 🔮 You can power list animations like you would using IntersectionObserver with CSS scroll-driven animations and zero JS 🤯 el { animation: show; animation-timeline: view(); animation-range: entry; } keyframes show {0%{translate:0 50%;}} CodePen.IO link below! 👇

10 Comments

Comments from the original post on X (Twitter)

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    Here's that @CodePen link! 🚀 Remember, need to be in Chrome 115+ to see this in action and for the View Transitions to fire 👀 Love trying to combine these new APIs ✨

    46 likes

  • Simon Ramsay 🚀 🧞‍♂️ 𝕩's profile picture

    @designkojo

    @CodePen This is pretty cool. Some strange loading when you click the guitar that you'd need to consider. I guess it's because the elements below haven't loaded because there are out of view...

    2 likes

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    @CodePen Yeah, there's an interesting thing happening here to do with how it works when clicking something that hasn't fully animated into view yet 🤔 Also it depends on where the browser decides it can push the element to when shuffling the grid. Definitely a fun experiment though! 😁

    2 likes

  • Miguel Correa's profile picture

    @Miguelc1221

    @CodePen Any good resources to learn more about animations that you would recommend? Havent used them much in my career unfortunately

    1 like

  • Kevin ⨀'s profile picture

    @kvncnls

    @CodePen can't wait for these features to become the norm

    1 like

  • Théo's profile picture

    @Theo_Helias

    @CodePen What is this new ? is this vanilla css ?

    1 like

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    @CodePen It will be soon 🤏 It's only supported in Chrome currently 🥲

    1 like

  • Brandon McConnell's profile picture

    @branmcconnell

    @CodePen Does this play nicely with lazy loaded images?

    1 like

  • jin's profile picture

    @Jin_Wang_0

    @CodePen Awesome, I like this. It would be nice to use this feature right away.

    1 like

  • jhey ▲🐻🎈's profile picture

    @jh3yy

    @CodePen Too right Jin 💯 Will be sweet when it has good support across the board 🤞