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

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

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

See Also