YUI-INSPIRED (Build-less Edition)
Select an animation to see CSS variables.
--i: 0;
Exploring the geometry of sin and cos in CSS animations.
By using Math.sin(angle) and Math.cos(angle), we can distribute elements evenly around a circle:
x = radius * Math.cos(angle);
y = radius * Math.sin(angle);
In this project, we inject these calculated values as CSS variables to drive high-performance animations.