Motion

Motion

Declarative animation system powered by Motion.dev

Fade In

Simple fade animation on appear.

Animated Card

This card fades in on page load

Content appears smoothly with a fade animation while the app is already interactive.

Scale In with Spring

Bouncy scale animation using spring physics.

Spring Physics

Natural, bouncy animation

This card scales in with spring-based easing for a more natural feel.

Slide In

Slide animations from different directions.

Combined Animations

Combine multiple animation effects.

Fade + Scale + Slide

Three animations working together

This combines fade, scale, and slide for a sophisticated entrance.

Micro-Interactions

Subtle animations triggered manually.

Pulse Animation

Continuous pulsing effect.

🔴 Live

Scroll-Triggered Animations

Animations that trigger when scrolling into view.

Scroll down to see animations trigger ↓

Card 1

Appears when scrolled into view

This card animates in as you scroll past it.

Card 2

Appears when scrolled into view

This card animates in as you scroll past it.

Card 3

Appears when scrolled into view

This card animates in as you scroll past it.

Staggered List

List items animate in sequence.

First item appears first

Second item follows shortly after

Third item comes next

Fourth item with a slight delay

Fifth item completes the sequence

Staggered Grid

Grid items animate in with delay.

1
2
3
4
5
6
7
8
9

Easing Functions

Compare different easing curves (click individual cards to replay).

Linear
Constant speed
QuadraticOut
Slow end
CubicOut
Smoother
BackOut
Overshoot!
CircularOut
Smooth arc
ExponentialOut
Dramatic

API Reference

Component parameters and their types.

Prop Type Default Description
Trigger MotionTrigger OnAppear Animation trigger: OnAppear, OnInView, or Manual.
DisableOnPrerender bool false Prevents animation if content was server pre-rendered (SSR).
StaggerChildren double? null Delay in seconds between each child Motion's animation.
InViewOptions InViewOptions? null Options for OnInView trigger (Threshold, RootMargin).
Presets RenderFragment? null Preset components: FadeIn, ScaleIn, SlideInFromLeft, Spring, etc.
ChildContent RenderFragment? null The content to animate.

Reconnecting...

Attempting to rejoin the server

Connection Lost

Retrying in seconds

Connection Failed

Failed to rejoin the server.
Please retry or reload the page.

Session Paused

The session has been paused by the server

Resume Failed

Failed to resume the session.
Please reload the page.