Skip navigation
CSS Tip! ⚡️ You could use CSS trig functions to calculate animation-delay 🤓 Using them here with…
0:00 / 0:14

CSS Tip! ⚡️ You could use CSS trig functions to calculate animation-delay 🤓 Using them here with…

jhey ʕ•ᴥ•ʔ

@jh3yy148K followers

Visit on X

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