Loading video...
Video Failed to Load
Custom property powered responsive scroll animations with CSS 🔥 .card { animation: morph; animation-timeline: --scroll; } .card--one { --x: -35vw; --r: -10deg; } .card--two { --x: 35vw; } @keyframes morph { 0% { translate: var(--x) var(--y); rotate: var(--r); } }
201,871 views • 2 years ago •via X (Twitter)
10 Comments

jhey ▲🐻🎈2 years ago
Here's that @CodePen link! 🚀 The trick here is powering all the card animations with custom properties 🔥 .card--one { --r: -20deg; } .card--two { --r: 15deg; } .card--three { --r: -8deg; } One set of keyframes, with many results 🤙

Sebastian2 years ago
im rdy to step up my css

jhey ▲🐻🎈2 years ago
Every demo is a POC for getting that course out there eventually 😅 (Temporarily Figma Config fuel)

Vlad2 years ago
We are a long way from the first sketch haha 😜 💙 @mboudoukhane 🫶

Arnob Dada2 years ago
Looks awesome, @CycleProduct tagging just so you know ❤️💪

Anastasia 🍑.js2 years ago
as usual - WOW 🤩

Rock$tar Singh2 years ago
I can’t even figure out where to start, CSS has always been extremely overwhelming

Robert P. 🎯2 years ago
You never fail to impress me. It's crazy what can be done with pure CSS.

Abdullah Abbasi2 years ago
Absolutely WOW!!!

Endless Impossibility2 years ago
Awesome as always.
