CSS Trigonometry is surprisingly useful

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateWeb DesignUI19 min

About this video

A CSS tutorial showing how to use the sin() and cos() trigonometric functions to position circles around a centre and to stagger animation delays. It also covers custom properties and a Sass/SCSS loop, and suits developers who already write CSS.

What you’ll learn

  • Position elements in a circle using sin() and cos()
  • Use custom properties to drive trigonometric layouts
  • Generate repeated styles with a Sass/SCSS loop