CSS custom props and scroll animation for staggered effects 🤙
jhey ʕ•ᴥ•ʔ
在 X 上查看@jh3yy15万 位关注者
32,781 次观看
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; }}
评论
评论来自 X (Twitter) 上的原帖
暂无评论
