Making your CSS Custom Properties Dynamic!

DesignCourse on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI14 min

About this video

Shows how to use JavaScript to update CSS custom properties dynamically, so animations can respond to events such as clicks and mouse movement. It suits developers and designers who already know basic CSS variables.

What you’ll learn

  • Update CSS custom properties from JavaScript in response to events
  • Drive event-based animations with mousemove and click handlers