0Pricing
Sveltejs Academy · Lesson

The spring() Store: Physics-Based Animation

Animate values with configurable stiffness and damping for a natural feel.

Spring Physics

The spring store animates values with stiffness and damping, like a real spring.

Import

From svelte/motion.

import { spring } from "svelte/motion";

All lessons in this course

  1. The spring() Store: Physics-Based Animation
  2. The tweened() Store: Duration and Easing
  3. Interpolation Functions
  4. Animating SVG Paths with Motion
← Back to Sveltejs Academy