Загрузка видео...
Не удалось загрузить видео
CSS Trick 🤙 You can use scroll-driven animations on the inline axis to create list animations like in these cards 🫶 article { animation: vibe; animation-timeline: view(inline); animation-range: cover 40% cover 60%; } @keyframes vibe { 50% { scale: 1; filter: grayscale(0); }} Here you use a view() timeline... show more
465,170 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 10

Here's that @CodePen link! 📜 Open it up in Chromium and you'll get the slick animated scroll-snap effect ✨ Kinda nice too because your arrow keys can be used to navigate scroll-snap too

Man, you don’t know how many bookmarked posts I have from you, legendary 🫡.

Gonna try and get them all into a website so it's one bookmark for you 😅

This is really nice. Love the built in accessibility the scroll snap provides as well. So ::before and ::after pseudo-elements always baffle me in examples. In these it looks like the before element is adding the little border and the after is the bg image? Is that correct?

@learnactrepeat Yep, that's it 🫶 To be honest, it could use an image. Wanted to see if I could make a little blurred border effect. But when it animated, it started glitching out 🥲

Awesome!

Nice!

Thanks for reminding me about this style! 🙏

Definitely looking into this 👏🏽

This is cool
