正在加载视频...
视频加载失败
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 次观看 • 2 年前 •via X (Twitter)
10 条评论

jhey ▲🐻🎈2 年前
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 年前
im rdy to step up my css

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

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

Arnob Dada2 年前
Looks awesome, @CycleProduct tagging just so you know ❤️💪

Anastasia 🍑.js2 年前
as usual - WOW 🤩

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

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

Abdullah Abbasi2 年前
Absolutely WOW!!!

Endless Impossibility2 年前
Awesome as always.
