CSS Tip! ⚡️ You could use CSS trig functions to calculate animation-delay 🤓 Using them here with…
jhey ʕ•ᴥ•ʔ
X profili@jh3yy148 B takipçi
182.636 görüntüleme
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! 👇
Yorumlar
Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır
Henüz yorum yok
