CSS Tip! ⚡️ You could use CSS trig functions to calculate animation-delay 🤓 Using them here with…
jhey ʕ•ᴥ•ʔ
在 X 上查看@jh3yy15万 位关注者
182,636 次观看
CSS Tip! ⚡️
You could use CSS trig functions to calculate animation-delay 🤓
Using them here with custom props for this DNA strand! 👩🔬
.node {
animation-delay: calc(
sin((var(--index) / var(--total)) * 45deg) 👈
* var(--speed) * -1s
);
}
CodePen.IO link below! 👇
评论
评论来自 X (Twitter) 上的原帖
暂无评论
