Skip to content

Animation Preset Reference

All built-in animation presets, their parameters, and defaults. Pass preset-specific parameters via the params block in your animation config.


Motion Presets

pulse

Scale and brightness breathing effect.

ParamDefaultDescription
max_scale1.15Peak scale factor (alias: scale)
max_brightness1.4Peak brightness (1.0 = normal)
duration1200ms per cycle
easeinOutSineEasing function
looptrueLoop continuously
alternatetrueReverse on each loop

glow

Animated drop-shadow bloom.

ParamDefaultDescription
colorvar(--lcars-blue)Glow colour (alias: glow_color)
blur_min0Minimum shadow blur (px)
blur_max10Maximum shadow blur (px)
duration1500ms per cycle
easeinOutSineEasing function
looptrueLoop continuously
alternatetrueReverse on each loop

shake

Horizontal vibrate effect.

ParamDefaultDescription
intensity10Max displacement in px
duration500Total duration (ms)
frequency4Number of side-to-side shakes
easeinOutSineEasing function
loopfalseLoop continuously

bounce

Elastic scale bounce.

ParamDefaultDescription
scale_max1.2Peak scale factor
duration800Duration (ms)
bounces3Number of bounces
easeoutElasticEasing function
loopfalseLoop continuously
alternatefalseReverse on each loop

rotate

Rotation animation.

ParamDefaultDescription
from0Starting angle (degrees)
to360Ending angle (degrees)
directionShorthand: clockwise (0→360) or counterclockwise (0→−360)
duration1000Duration (ms)
easelinearEasing function
loopfalseLoop continuously
alternatefalseReverse on each loop

Slow opacity blink.

ParamDefaultDescription
max_opacity1.0Peak opacity
min_opacity0.3Trough opacity
duration1200ms per half-cycle
easelinearEasing function
looptrueLoop continuously
alternatetrueReverse on each loop

strobe

Rapid opacity flicker.

ParamDefaultDescription
max_opacity1.0Peak opacity
min_opacity0Trough opacity
duration100ms per half-cycle
easelinearEasing function
looptrueLoop continuously
alternatetrueReverse on each loop

skew

Skew/slant transformation.

ParamDefaultDescription
skewX0Target horizontal skew (degrees)
skewY0Target vertical skew (degrees)
from_skewX0Starting horizontal skew
from_skewY0Starting vertical skew
duration600Duration (ms)
easeinOutQuadEasing function
loopfalseLoop continuously
alternatefalseReverse on each loop

fade

Simple opacity transition.

ParamDefaultDescription
from1Starting opacity
to0.3Target opacity
duration1000Duration (ms)
easelinearEasing function
loopfalseLoop continuously
alternatefalseReverse on each loop

slide

Slide in from a direction.

ParamDefaultDescription
fromrightEntry direction: up, down, left, right (alias: direction)
distance100Distance in px (or % string)
duration500Duration (ms)

scale

Simple scale transform animation. Ideal for button feedback.

ParamDefaultDescription
scale1.1Target scale factor
from1Starting scale
duration200Duration (ms)
easeoutQuadEasing function
loopfalseLoop continuously

scale-reset

Returns an element to its original scale (1.0). Pair with on_leave to reset hover effects.

ParamDefaultDescription
duration200Duration (ms)
easeoutQuadEasing function
yaml
# Typical hover + reset pair
animations:
  - preset: scale
    trigger: on_hover
    params:
      scale: 1.1
  - preset: scale-reset
    trigger: on_leave

Text Animation Presets

Target individual text elements with target: "[data-field-id='my-field']" to restrict the animation to a specific text field.

text-reveal

Characters, words, or lines appear in sequence with a stagger effect.

ParamDefaultDescription
splitcharsSplit unit: chars, words, or lines
stagger50Delay between units (ms)
duration800Duration per unit (ms)
from_opacity0Starting opacity of each unit
from_y20Starting Y offset (px)
loopfalseLoop continuously

text-scramble

Matrix-style character scramble before settling on the real text.

ParamDefaultDescription
duration800ms each character spends scrambling
stagger40Delay between characters starting (ms)
delay0Initial delay before animation starts (ms)
settle_at0.85Fraction (0–1) of duration spent scrambling
charactersA-Z 0-9 !@#$%^&*Pool of random characters to cycle through
loopfalseLoop continuously

text-glitch

Rapid position and opacity jitter for a glitch/malfunction effect.

ParamDefaultDescription
intensity5Max displacement in px / SVG units
duration300ms per glitch cycle
stagger50Delay between characters (ms)
loopfalseLoop continuously

text-typewriter

Characters appear one at a time at a fixed speed.

ParamDefaultDescription
speed100ms per character
loopfalseLoop continuously

Visual Effect Presets

shimmer

Fill colour and opacity animation for shimmering effects.

ParamDefaultDescription
color_fromcurrent fillStarting colour
color_toTarget colour (required; alias: shimmer_color)
opacity_from1Starting opacity
opacity_to0.5Ending opacity
duration1500Duration (ms)
easeinOutSineEasing function
looptrueLoop continuously
alternatetrueReverse on each loop

flicker

Randomised opacity animation for flickering effects.

ParamDefaultDescription
max_opacity1Maximum opacity
min_opacity0.3Minimum opacity
duration1000Duration (ms)
easelinearEasing function
looptrueLoop continuously

cascade

Staggered animation across multiple target elements.

ParamDefaultDescription
stagger100Delay between elements (ms)
propertyopacityCSS property to animate
from0Starting value
to1Ending value
duration1000Duration (ms)
easeoutExpoEasing function
loopfalseLoop continuously

ripple

Expanding scale with opacity fade.

ParamDefaultDescription
scale_max1.5Maximum scale
opacity_min0Minimum opacity at peak
duration1000Duration (ms)
easeoutExpoEasing function
loopfalseLoop continuously

glitch

Random position and colour shifts for a malfunction effect.

ParamDefaultDescription
intensity5Max pixel displacement
frequency10Number of glitch steps
duration1000Duration (ms)
loopfalseLoop continuously

scan-line

Moving highlight gradient across the element.

ParamDefaultDescription
directionhorizontalhorizontal or vertical
colorrgba(255,255,255,0.3)Scan line colour
duration2000Duration (ms)
easelinearEasing function
looptrueLoop continuously

Color Animation Presets

color-shift

Animates a colour property from one value to another.

ParamDefaultDescription
color_fromStarting colour (required)
color_toTarget colour (required)
propertycolorCSS property: color, fill, stroke, background-color, etc.
duration1000Duration (ms)
easeinOutQuadEasing function
loopfalseLoop continuously
alternatefalseReverse on each loop

border-pulse

Animate border colour and/or width. At least one pair (color_from/color_to or width_from/width_to) must be specified.

ParamDefaultDescription
color_fromStarting border colour
color_toEnding border colour
width_fromStarting border width
width_toEnding border width
duration1000Duration (ms)
easeinOutSineEasing function
looptrueLoop continuously
alternatetrueReverse on each loop

cascade-color

LCARS-style colour cascade through three keyframe colours. Uses theme tokens for default colours.

ParamDefaultDescription
colorstheme cascade coloursArray of 3 colours: [start, mid, end]
propertycolorCSS property to animate
duration5000ms per full cycle
easelinearEasing function
looptrueLoop continuously
alternatetrueReverse on each loop
stagger_delay100Delay between elements in stagger mode (ms)
stagger_fromStagger origin: first, last, center, or [x, y]
axisrowStagger axis: row or column
interactivefalsePause on hover, resume on leave

SVG-Specific Presets

draw

SVG path drawing animation using strokeDashoffset. Apply to <path> elements.

ParamDefaultDescription
reversefalseDraw in reverse direction
duration2000Duration (ms)
easelinearEasing function
loopfalseLoop continuously

march

CSS-based marching dashed line animation. More performant than JS for continuous use.

ParamDefaultDescription
dash_length10Length of each dash
gap_length5Gap between dashes
speed2Seconds per cycle
directionforwardforward or reverse

Utility Presets

set

Immediately sets properties without animation. Useful for establishing initial state before other animations run.

ParamDefaultDescription
propertiesObject with CSS properties to set immediately
yaml
animations:
  - preset: set
    trigger: on_load
    params:
      properties:
        opacity: 0.5
        fill: red

motionpath

Path-following animation. Requires a <path> element in the SVG.

ParamDefaultDescription
path_selectorCSS selector for the path element (required)
duration4000Duration (ms)
easelinearEasing function
looptrueLoop continuously

Advanced Presets

sequence

Timeline-based animation with multiple steps at specified offsets. Uses anime.js createTimeline() internally.

ParamDefaultDescription
stepsArray of step objects (required) — each has the same fields as a normal anime.js animate call plus an optional at offset (ms or '<' for overlap)
duration2000Default duration per step
easeoutQuadDefault easing per step
loopfalseLoop the full sequence
yaml
- preset: sequence
  trigger: on_tap
  params:
    steps:
      - opacity: [0, 1]
        duration: 500
      - scale: [1, 1.2]
        duration: 300
        at: 500

grid-stagger

Staggered animation across grid elements, with waves emanating from a chosen origin.

ParamDefaultDescription
grid[10, 10]Grid dimensions [cols, rows]
fromcenterWave origin: center, first, last, random, or [x, y]
propertyscaleCSS property to animate
from_value1Starting value
to_value1.5Ending value
stagger_duration50Delay between elements (ms)
wave_duration1000Duration per element animation (ms)
easeinOutQuadEasing function
loopfalseLoop continuously
alternatetrueReverse on each loop

chaos

Randomised multi-property animation for glitch and malfunction effects.

ParamDefaultDescription
properties['x', 'y', 'rotate']Properties to randomise (x/y map to translateX/translateY)
range{x: [-50,50], y: [-50,50], rotate: [-15,15]}Min/max [min, max] per property
duration_min200Minimum animation duration (ms)
duration_max800Maximum animation duration (ms)
easeinOutQuadEasing function
looptrueLoop continuously

physics-spring

Spring-physics animation using anime.js v4 spring easing. Produces natural, organic motion.

ParamDefaultDescription
propertyscaleCSS property to animate
fromStarting value (required)
toTarget value (required)
stiffness100Spring stiffness (higher = snappier)
damping10Spring damping (higher = less bounce)
mass1Spring mass (higher = slower)
velocity0Initial velocity
loopfalseLoop continuously

See Also