Skip to content
Kitbay
Skill

animate

MITUpdated on Nov 9, 202655,996GitHub stars

A skill from Emil Kowalski's collection for adding motion to web interfaces, based on his approach to animation.

What the skill teaches

A skill from Emil Kowalski's collection for adding motion to web interfaces, based on his approach to animation. Before writing code the agent works through a set order of questions: whether the action should animate at all given how often people trigger it, what the motion is for, the cheapest tool that fits (CSS transitions or animations, the Web Animations API or the Motion library), which properties to animate (preferably only transform and opacity), easing and duration (under 300 ms for most interface motion), how the animation can be interrupted, and how things exit. It also covers reduced motion and hover-only devices, and keeps component recipes in a separate file.

Capabilities

  • Decide whether an interaction should animate
  • Choose between CSS, the Web Animations API and Motion
  • Set easing, duration and spring values
  • Handle interruption, exits and reduced motion