CSS Tip! ⚡️ You could use CSS trig functions to calculate animation-delay 🤓 Using them here with…
jhey ʕ•ᴥ•ʔ
Visit on X@jh3yy148K followers
182,636 views
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! 👇
Comments
Comments from the original post on X (Twitter)
No comments yet
