Presets Reference
Complete reference of all 122 animation presets organized by category.
All 122 presets define symmetric enter/leave animations: enter animates from the hidden (start) state to the visible state, and leave reverses it. Pass a preset to kinetic().preset().
import { kinetic } from '@vitus-labs/kinetic'
import { fadeUp } from '@vitus-labs/kinetic-presets'
const AnimatedDiv = kinetic('div').preset(fadeUp)
<AnimatedDiv show={visible}>content</AnimatedDiv>Unless noted, the start state also has opacity: 0 and the visible state is the identity transform (translateY(0), scale(1), rotate(0), …) with opacity: 1. Enter and leave are all <duration> <easing> transitions. Values below are generated from the package source.
scaleOut, zoomOut, zoomOutUp/Down/Left/Right and puffOut are entrances despite their names — they start larger (or, for puffOut, smaller and blurred) and settle to normal size.
Fades
Opacity transitions with optional directional movement.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
fade | opacity only | 300ms ease-out | 200ms ease-in | Pure opacity fade. |
fadeUp | translateY(16px) | 300ms ease-out | 200ms ease-in | Fade in while sliding upward (starts 16px below). |
fadeDown | translateY(-16px) | 300ms ease-out | 200ms ease-in | Fade in while sliding downward (starts 16px above). |
fadeLeft | translateX(16px) | 300ms ease-out | 200ms ease-in | Fade in while sliding left (starts 16px to the right). |
fadeRight | translateX(-16px) | 300ms ease-out | 200ms ease-in | Fade in while sliding right (starts 16px to the left). |
fadeUpBig | translateY(48px) | 300ms ease-out | 200ms ease-in | Fade + slide up, dramatic distance (48px). |
fadeDownBig | translateY(-48px) | 300ms ease-out | 200ms ease-in | Fade + slide down, dramatic distance (48px). |
fadeLeftBig | translateX(48px) | 300ms ease-out | 200ms ease-in | Fade + slide left, dramatic distance (48px). |
fadeRightBig | translateX(-48px) | 300ms ease-out | 200ms ease-in | Fade + slide right, dramatic distance (48px). |
fadeUpLeft | translate(16px, 16px) | 300ms ease-out | 200ms ease-in | Fade in from below-right corner (16px diagonal). |
fadeUpRight | translate(-16px, 16px) | 300ms ease-out | 200ms ease-in | Fade in from below-left corner (16px diagonal). |
fadeDownLeft | translate(16px, -16px) | 300ms ease-out | 200ms ease-in | Fade in from above-right corner (16px diagonal). |
fadeDownRight | translate(-16px, -16px) | 300ms ease-out | 200ms ease-in | Fade in from above-left corner (16px diagonal). |
fadeScale | scale(0.95) | 300ms ease-out | 200ms ease-in | Fade in with subtle scale (from 95%). |
Slides
Directional movement with opacity. Standard (16px) and big (48px) variants. The six non-Big slides match the values of their fade* counterparts.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
slideUp | translateY(16px) | 300ms ease-out | 200ms ease-in | Slide up with fade (16px). |
slideDown | translateY(-16px) | 300ms ease-out | 200ms ease-in | Slide down with fade (16px). |
slideLeft | translateX(16px) | 300ms ease-out | 200ms ease-in | Slide left with fade (16px). |
slideRight | translateX(-16px) | 300ms ease-out | 200ms ease-in | Slide right with fade (16px). |
slideUpBig | translateY(48px) | 300ms ease-out | 200ms ease-in | Slide up with fade, dramatic (48px). |
slideDownBig | translateY(-48px) | 300ms ease-out | 200ms ease-in | Slide down with fade, dramatic (48px). |
slideLeftBig | translateX(48px) | 300ms ease-out | 200ms ease-in | Slide left with fade, dramatic (48px). |
slideRightBig | translateX(-48px) | 300ms ease-out | 200ms ease-in | Slide right with fade, dramatic (48px). |
Scales
Scale transforms with opacity.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
scaleIn | scale(0.9) | 300ms ease-out | 200ms ease-in | Scale up from 90% with fade. |
scaleOut | scale(1.1) | 300ms ease-out | 200ms ease-in | Scale down from 110% with fade (an entrance despite the name). |
scaleUp | scale(0.5) | 300ms ease-out | 200ms ease-in | Dramatic scale from 50% with fade. |
scaleDown | scale(1.5) | 300ms ease-out | 200ms ease-in | Dramatic scale from 150% with fade. |
scaleInUp | scale(0.9) translateY(16px) | 300ms ease-out | 200ms ease-in | Scale from 90% + slide up (16px). |
scaleInDown | scale(0.9) translateY(-16px) | 300ms ease-out | 200ms ease-in | Scale from 90% + slide down (16px). |
scaleInLeft | scale(0.9) translateX(16px) | 300ms ease-out | 200ms ease-in | Scale from 90% + slide left (16px). |
scaleInRight | scale(0.9) translateX(-16px) | 300ms ease-out | 200ms ease-in | Scale from 90% + slide right (16px). |
scaleRotateIn | scale(0) rotate(-180deg) | 500ms ease-out | 300ms ease-in | Spin in while scaling from nothing — dramatic entrance. |
Blurs
filter: blur() transitions with opacity.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
blurIn | filter: blur(8px) | 300ms ease-out | 200ms ease-in | Blur in from 8px with fade. |
blurInUp | filter: blur(8px); transform: translateY(16px) | 300ms ease-out | 200ms ease-in | Blur in from 8px + slide up (16px). |
blurInDown | filter: blur(8px); transform: translateY(-16px) | 300ms ease-out | 200ms ease-in | Blur in from 8px + slide down (16px). |
blurInLeft | filter: blur(8px); transform: translateX(16px) | 300ms ease-out | 200ms ease-in | Blur in from 8px + slide from right (16px). |
blurInRight | filter: blur(8px); transform: translateX(-16px) | 300ms ease-out | 200ms ease-in | Blur in from 8px + slide from left (16px). |
blurScale | filter: blur(8px); transform: scale(0.95) | 300ms ease-out | 200ms ease-in | Blur in from 8px + scale from 95%. |
Bounces
Bouncy entrances using an overshooting cubic-bezier(0.68, -0.55, 0.265, 1.55) enter easing.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
bounceIn | scale(0.5) | 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) | 200ms ease-in | Bouncy scale entrance from 50%. |
bounceInUp | translateY(40px) | 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) | 200ms ease-in | Bouncy slide up from 40px below. |
bounceInDown | translateY(-40px) | 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) | 200ms ease-in | Bouncy slide down from 40px above. |
bounceInLeft | translateX(40px) | 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) | 200ms ease-in | Bouncy slide from 40px right. |
bounceInRight | translateX(-40px) | 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55) | 200ms ease-in | Bouncy slide from 40px left. |
Rotations
Rotation transforms with opacity.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
rotateIn | rotate(-15deg) | 300ms ease-out | 200ms ease-in | Rotate in from -15deg with fade. |
rotateInReverse | rotate(15deg) | 300ms ease-out | 200ms ease-in | Rotate in from +15deg with fade. |
rotateInUp | rotate(-5deg) translateY(16px) | 300ms ease-out | 200ms ease-in | Rotate in from -5deg + slide up (16px). |
rotateInDown | rotate(5deg) translateY(-16px) | 300ms ease-out | 200ms ease-in | Rotate in from +5deg + slide down (16px). |
Flips
3D flips using perspective(600px).
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
flipX | perspective(600px) rotateX(90deg) | 500ms ease-out | 300ms ease-in | Flip around X axis (top-to-bottom rotation). |
flipXReverse | perspective(600px) rotateX(-90deg) | 500ms ease-out | 300ms ease-in | Reverse flip around X axis. |
flipY | perspective(600px) rotateY(90deg) | 500ms ease-out | 300ms ease-in | Flip around Y axis (left-to-right rotation). |
flipYReverse | perspective(600px) rotateY(-90deg) | 500ms ease-out | 300ms ease-in | Reverse flip around Y axis. |
flipDiagonal | perspective(600px) rotate3d(1, 1, 0, 90deg) | 500ms ease-out | 300ms ease-in | Flip along the diagonal axis (top-left to bottom-right). |
flipDiagonalReverse | perspective(600px) rotate3d(1, -1, 0, 90deg) | 500ms ease-out | 300ms ease-in | Flip along the anti-diagonal (top-right to bottom-left). |
Zooms
Dramatic scale effects (from 0, 0.5 or 2x).
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
zoomIn | scale(0) | 400ms ease-out | 250ms ease-in | Zoom from nothing (scale 0) to full size. |
zoomInUp | scale(0.5) translateY(48px) | 400ms ease-out | 250ms ease-in | Zoom in from below (scale 0.5 + translateY 48px). |
zoomInDown | scale(0.5) translateY(-48px) | 400ms ease-out | 250ms ease-in | Zoom in from above (scale 0.5 + translateY -48px). |
zoomInLeft | scale(0.5) translateX(48px) | 400ms ease-out | 250ms ease-in | Zoom in from right (scale 0.5 + translateX 48px). |
zoomInRight | scale(0.5) translateX(-48px) | 400ms ease-out | 250ms ease-in | Zoom in from left (scale 0.5 + translateX -48px). |
zoomOut | scale(2) | 400ms ease-out | 250ms ease-in | Zoom from 2x size down to normal (an entrance despite the name). |
zoomOutUp | scale(2) translateY(48px) | 400ms ease-out | 250ms ease-in | Zoom from 2x while sliding upward. |
zoomOutDown | scale(2) translateY(-48px) | 400ms ease-out | 250ms ease-in | Zoom from 2x while sliding downward. |
zoomOutLeft | scale(2) translateX(48px) | 400ms ease-out | 250ms ease-in | Zoom from 2x while sliding left. |
zoomOutRight | scale(2) translateX(-48px) | 400ms ease-out | 250ms ease-in | Zoom from 2x while sliding right. |
Clip Path
CSS clip-path reveal animations (no opacity change).
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
clipTop | clip-path: inset(0 0 100% 0) → clip-path: inset(0 0 0 0) | 400ms ease-out | 250ms ease-in | Reveal from top edge. |
clipBottom | clip-path: inset(100% 0 0 0) → clip-path: inset(0 0 0 0) | 400ms ease-out | 250ms ease-in | Reveal from bottom edge. |
clipLeft | clip-path: inset(0 100% 0 0) → clip-path: inset(0 0 0 0) | 400ms ease-out | 250ms ease-in | Reveal from left edge. |
clipRight | clip-path: inset(0 0 0 100%) → clip-path: inset(0 0 0 0) | 400ms ease-out | 250ms ease-in | Reveal from right edge. |
clipCenter | clip-path: inset(50% 50% 50% 50%) → clip-path: inset(0 0 0 0) | 400ms ease-out | 250ms ease-in | Reveal from center outward (rectangular inset). |
clipCircle | clip-path: circle(0% at 50% 50%) → clip-path: circle(75% at 50% 50%) | 500ms ease-out | 300ms ease-in | Reveal with expanding circle from center. |
clipDiamond | clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%) → clip-path: polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%) | 500ms ease-out | 300ms ease-in | Reveal with expanding diamond shape from center. |
clipCorner | clip-path: polygon(0 0, 0 0, 0 0, 0 0) → clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) | 500ms ease-out | 300ms ease-in | Reveal expanding from top-left corner. |
Perspective
Subtle 3D tilts using perspective(600px).
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
perspectiveUp | perspective(600px) rotateX(15deg) | 300ms ease-out | 200ms ease-in | Tilt in from above (3D perspective + rotateX). |
perspectiveDown | perspective(600px) rotateX(-15deg) | 300ms ease-out | 200ms ease-in | Tilt in from below (3D perspective + rotateX). |
perspectiveLeft | perspective(600px) rotateY(-15deg) | 300ms ease-out | 200ms ease-in | Tilt in from left (3D perspective + rotateY). |
perspectiveRight | perspective(600px) rotateY(15deg) | 300ms ease-out | 200ms ease-in | Tilt in from right (3D perspective + rotateY). |
Swings
Swing in from an edge — the transformOrigin is part of both states.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
swingInTop | transform: perspective(600px) rotateX(-90deg); transform-origin: top | 500ms ease-out | 300ms ease-in | Swing in from top edge (hinged at top). |
swingInBottom | transform: perspective(600px) rotateX(90deg); transform-origin: bottom | 500ms ease-out | 300ms ease-in | Swing in from bottom edge (hinged at bottom). |
swingInLeft | transform: perspective(600px) rotateY(90deg); transform-origin: left | 500ms ease-out | 300ms ease-in | Swing in from left edge (hinged at left). |
swingInRight | transform: perspective(600px) rotateY(-90deg); transform-origin: right | 500ms ease-out | 300ms ease-in | Swing in from right edge (hinged at right). |
Tilts
3D tilt combined with movement.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
tiltInUp | perspective(600px) rotateX(15deg) translateY(24px) | 300ms ease-out | 200ms ease-in | Tilt in from below with upward movement. |
tiltInDown | perspective(600px) rotateX(-15deg) translateY(-24px) | 300ms ease-out | 200ms ease-in | Tilt in from above with downward movement. |
tiltInLeft | perspective(600px) rotateY(-15deg) translateX(24px) | 300ms ease-out | 200ms ease-in | Tilt in from the right with leftward movement. |
tiltInRight | perspective(600px) rotateY(15deg) translateX(-24px) | 300ms ease-out | 200ms ease-in | Tilt in from the left with rightward movement. |
Floats
Gentle floating entrances with a subtle scale and cubic-bezier(0.23, 1, 0.32, 1) enter easing.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
floatUp | translateY(32px) scale(0.97) | 500ms cubic-bezier(0.23, 1, 0.32, 1) | 300ms ease-in | Gentle float up with subtle scale and premium easing. |
floatDown | translateY(-32px) scale(0.97) | 500ms cubic-bezier(0.23, 1, 0.32, 1) | 300ms ease-in | Gentle float down with subtle scale and premium easing. |
floatLeft | translateX(32px) scale(0.97) | 500ms cubic-bezier(0.23, 1, 0.32, 1) | 300ms ease-in | Gentle float from right with subtle scale. |
floatRight | translateX(-32px) scale(0.97) | 500ms cubic-bezier(0.23, 1, 0.32, 1) | 300ms ease-in | Gentle float from left with subtle scale. |
Flies
Dramatic fly-in from outside the viewport.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
flyInUp | translateY(100vh) | 500ms ease-out | 300ms ease-in | Fly in from below the viewport. |
flyInDown | translateY(-100vh) | 500ms ease-out | 300ms ease-in | Fly in from above the viewport. |
flyInLeft | translateX(100vw) | 500ms ease-out | 300ms ease-in | Fly in from the right of the viewport. |
flyInRight | translateX(-100vw) | 500ms ease-out | 300ms ease-in | Fly in from the left of the viewport. |
Light Speed
Skewed high-speed entrances.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
lightSpeedInLeft | translateX(100%) skewX(-30deg) | 400ms ease-out | 250ms ease-in | Speed streak entrance from the right. |
lightSpeedInRight | translateX(-100%) skewX(30deg) | 400ms ease-out | 250ms ease-in | Speed streak entrance from the left. |
Back
Approach from a distance at reduced scale.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
backInUp | scale(0.7) translateY(80px) | 400ms ease-out | 250ms ease-in | Approach from below at reduced scale. |
backInDown | scale(0.7) translateY(-80px) | 400ms ease-out | 250ms ease-in | Approach from above at reduced scale. |
backInLeft | scale(0.7) translateX(80px) | 400ms ease-out | 250ms ease-in | Approach from the right at reduced scale. |
backInRight | scale(0.7) translateX(-80px) | 400ms ease-out | 250ms ease-in | Approach from the left at reduced scale. |
Pushes
Push in from the side with a slight scale.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
pushInLeft | translateX(-48px) scale(0.9) | 300ms ease-out | 200ms ease-in | Push in from the left with slight scale. |
pushInRight | translateX(48px) scale(0.9) | 300ms ease-out | 200ms ease-in | Push in from the right with slight scale. |
Rolls
Rotate + translate entrance.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
rollInLeft | translateX(-100%) rotate(-120deg) | 500ms ease-out | 300ms ease-in | Roll in from the left (rotate + translateX). |
rollInRight | translateX(100%) rotate(120deg) | 500ms ease-out | 300ms ease-in | Roll in from the right (rotate + translateX). |
Swirls
Spiral-in rotation with scale from 0.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
swirlIn | rotate(-540deg) scale(0) | 600ms ease-out | 400ms ease-in | Swirl in clockwise — 1.5 rotations + scale from 0. |
swirlInReverse | rotate(540deg) scale(0) | 600ms ease-out | 400ms ease-in | Swirl in counter-clockwise. |
Slits
Slit reveal with 3D rotation.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
slitHorizontal | perspective(600px) rotateY(90deg) scaleX(0) | 500ms ease-out | 300ms ease-in | Reveal through a horizontal slit (rotateY + scaleX). |
slitVertical | perspective(600px) rotateX(90deg) scaleY(0) | 500ms ease-out | 300ms ease-in | Reveal through a vertical slit (rotateX + scaleY). |
Expand
Single-axis expansion with opacity.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
expandX | scaleX(0) | 300ms ease-out | 200ms ease-in | Expand horizontally from scaleX(0) with fade. |
expandY | scaleY(0) | 300ms ease-out | 200ms ease-in | Expand vertically from scaleY(0) with fade. |
Squish
Asymmetric scale (squash and stretch) with spring easing.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
squishX | scaleX(1.4) scaleY(0.6) | 400ms cubic-bezier(0.34, 1.56, 0.64, 1) | 250ms ease-in | Squish horizontally — starts wide and narrow, snaps to normal. |
squishY | scaleX(0.6) scaleY(1.4) | 400ms cubic-bezier(0.34, 1.56, 0.64, 1) | 250ms ease-in | Squish vertically — starts tall and thin, snaps to normal. |
Skews
Skew transforms with opacity.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
skewIn | skewX(-5deg) | 300ms ease-out | 200ms ease-in | Skew in from -5deg on X axis with fade. |
skewInReverse | skewX(5deg) | 300ms ease-out | 200ms ease-in | Skew in from +5deg on X axis with fade. |
skewInY | skewY(-5deg) | 300ms ease-out | 200ms ease-in | Skew in from -5deg on Y axis with fade. |
skewInYReverse | skewY(5deg) | 300ms ease-out | 200ms ease-in | Skew in from +5deg on Y axis with fade. |
Special
Unique effects.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
popIn | scale(0.3) | 300ms cubic-bezier(0.34, 1.56, 0.64, 1) | 200ms ease-in | Pop in with snappy spring overshoot from tiny. |
puffIn | filter: blur(4px); transform: scale(1.5) | 400ms ease-out | 250ms ease-in | Condense from a large blurry cloud into focus. |
puffOut | filter: blur(4px); transform: scale(0.5) | 400ms ease-out | 250ms ease-in | Form from a tiny blurry spark into focus (an entrance despite the name). |
rubberIn | scale(0.6) | 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275) | 250ms ease-in | Elastic rubber-band scale entrance with heavy overshoot. |
newspaperIn | scale(0) rotate(-720deg) | 700ms ease-out | 400ms ease-in | Newspaper spin — dramatic zoom from 0 with double rotation. |
springIn | scale(0.8) | 400ms cubic-bezier(0.34, 1.56, 0.64, 1) | 200ms ease-in | Spring scale entrance from 80% — gentle overshoot. |
spinIn | rotate(-180deg) | 500ms ease-out | 300ms ease-in | Full 180deg clockwise spin with fade. |
spinInReverse | rotate(180deg) | 500ms ease-out | 300ms ease-in | Full 180deg counter-clockwise spin with fade. |
Drop / Rise
Full-height vertical movement.
| Preset | Start (hidden) state | Enter | Leave | Notes |
|---|---|---|---|---|
drop | translateY(-100%) | 400ms ease-out | 250ms ease-in | Drop from above (translateY -100%). |
rise | translateY(100%) | 400ms ease-out | 250ms ease-in | Rise from below (translateY 100%). |
Last updated on