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