Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Switching word combos on scroll with CSS 🖱️ main { animation: switch both steps(3); animation-timeline: view(); } @​keyframes switch { to { --i: 3; }} .words__track { translate: 0 calc(var(--i) * -100%); } Result of a DM request 👇

92,943 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 1 Jahr

Wasn't going to share this one as it was quickly thrown together 😬 May be useful to some though 🤙 Haven't put together a mobile view where could imagine everything would stack and you'd lose the animation. Nor does this fallback where no support 🥲

Profilbild von pavi2410
pavi2410vor 1 Jahr

What's the DOM structure like?

Profilbild von Andrej Maznevski
Andrej Maznevskivor 1 Jahr

So this is what you've been cooking 🧑‍🍳

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 1 Jahr

Not this haha 😂 This was like a 20 minute prototype for someone 🤙

Profilbild von Abdulfettah
Abdulfettahvor 1 Jahr

When this gonna be supported on safari

Profilbild von Ivanchis
Ivanchisvor 1 Jahr

👋👋👋

Profilbild von Soya
Soyavor 1 Jahr

thank you! i’ll definitely implement this soon

Profilbild von huang deshiou
huang deshiouvor 1 Jahr

This looks amazing! Can I ask for the code?

Profilbild von LcsGa 🅰️
LcsGa 🅰️vor 1 Jahr

Nice effect! To work properly, each part has to be of the same height, right?

Profilbild von ROLLA
ROLLAvor 1 Jahr

You need to adjust the alignment of the text. It’s a little wonky

Ähnliche Videos