Пропустить навигацию
The CSS trick here is using custom properties to drive your CSS animation behavior 🤙 Doesn't have to…
0:00 / 0:38

The CSS trick here is using custom properties to drive your CSS animation behavior 🤙 Doesn't have to…

jhey ʕ•ᴥ•ʔ

@jh3yy146 тыс. подписчиков

Открыть в X
2 197 отметок «Нравится»СкачатьОригинальный пост

239 989 просмотров

The CSS trick here is using custom properties to drive your CSS animation behavior 🤙 Doesn't have to be a scroll animation li:nth-of-type(odd) { --x: -4ch; } li:nth-of-type(even) { --x: 4ch; } @​keyframes shift {50% { translate: var(--x) 0; }} Updates at runtime 🚀

3 комментария

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля ComputerGoBrr

    @ComputerGoBrr

    You are a black magic-peddling magician

  • Фото профиля Arc Terminus

    @ArcTerminus

    You are a CSS god. 🫡

  • Фото профиля Jorge Galarza

    @jorsisu

    That's a lot of opened tabs