Загрузка видео...

Не удалось загрузить видео

На главную

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,985 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈2 лет назад

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 🥲

Фото профиля pavi2410
pavi24102 лет назад

What's the DOM structure like?

Фото профиля Andrej Maznevski
Andrej Maznevski2 лет назад

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

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈2 лет назад

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

Фото профиля Abdulfettah
Abdulfettah2 лет назад

When this gonna be supported on safari

Фото профиля Ivanchis
Ivanchis2 лет назад

👋👋👋

Фото профиля Soya
Soya2 лет назад

thank you! i’ll definitely implement this soon

Фото профиля huang deshiou
huang deshiou2 лет назад

This looks amazing! Can I ask for the code?

Фото профиля LcsGa 🅰️
LcsGa 🅰️2 лет назад

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

Фото профиля ROLLA
ROLLA2 лет назад

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

Похожие видео