Skip to article

Get started with Motion

Install Motion and animate HTML, SVG, or WebGL with springs.

Motion is an animation library that's easy to start and fun to master.

Its unique hybrid engine combines the performance of the browser with the limitless potential of a JavaScript engine. This means you can animate anything, like:

  • HTML/CSS

  • SVG (like path drawing animations)

  • WebGL (3D graphics)

The best part? It's also tiny, with a mini HTML/SVG version of the animate() function that's just 3.2kb!

By the end of this quick guide, you'll have installed Motion and made your first animation.

Video guideOpen video

Install

You can install Motion in two ways:

  1. A package manager like npm or Yarn (most popular)

  2. HTML script tag