CSS custom props and scroll animation for staggered effects 🤙
jhey ʕ•ᴥ•ʔ
Auf X besuchen@jh3yy146.397 Follower
32.781 Aufrufe
CSS custom props and scroll animation for staggered effects 🤙
h2 {
animation: show;
animation-timeline: view();
}
.char {
translate: 0 calc((1 - var(--s)) * 1lh);
transition: translate 0.5s
calc(sin(var(--i) / var(--t) * 45deg) * 0.5s);
}
@keyframes show { to { --s: 1; }}
Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)
Noch keine Kommentare
