site logo SVELTE ANIMATED ICON

Animation Type

Choosing an animation template (draw, spin, jelly, …) and which suit line vs fill icons.

The template prop selects which animation runs. Each template is a small WAAPI script that operates on whatever shapes the icon contains - path, circle, line, polyline, polygon, ellipse, rect - so a single template animates any of the 4,000+ icons uniformly.

Pick by feel

TemplateVibeBest on
drawPen traces the outlineline icons (regular, light)
native-drawSame idea, slowerline icons
cascadeShapes pop in one after anotheranything with several paths
popEach shape bounces inmixed / chunky icons
spinWhole icon rotatessymmetric icons (gear, loader, settings)
jellySquish + wobblefriendly UI (heart, star, smile)
tadaQuick scale + rotate accentcelebratory moments (success, share, send)
flip3D Y-axis fliptoggleable state (play/pause, on/off)
swingPendulum swayarrow-like or directional icons
waveSequential opacity sweepicons with many parallel paths
orbitEach shape rotates into placelayered icons (compass, dashboard, sun)
marchStrokes march along the pathline icons, especially dashed-feeling ones
boilBubbling motionorganic icons (cloud, fire, drop)
glitchRapid translate/jitterstatus / debug indicators
wipeReveal mask slides acrossline icons, hero moments
riseFade + rise from belowentrances
irisCircular scale from centerloading indicators
splitShape breaks apart and rejoinsplayful / attention-grabbing
dropFall + settledrop, pin, download
stampSlam into placeconfirmations, approvals
traceOutline-first, then fillline → fill transition
assembleShapes converge to final positioncomposed icons (lock, key)

Browse them live on the home route or in the Templates Catalog.

Line vs. fill

Templates that rely on a stroke (like draw, march, native-draw) only look right on icons that have one. Phosphor’s regular and light variants are stroked; fill is solid.

If your icon is…Reach for
Stroked (regular, light)draw, native-draw, march, wipe, trace
Solid (fill)pop, cascade, spin, jelly, tada, drop, stamp
Mixed / unclearcascade, orbit, split, glitch (geometry-agnostic)

Templates declare their preference with a for field - for: 'line' means stroke-based, for: 'fill' means solid-suited, omitted means both. See IconTemplate in Core Exports and Types.

Combining multiple icons in a row

When a group of icons animate together (a toolbar, a feature row), reach for templates that don’t fight each other. cascade and pop already stagger by index - if you want to stagger across separate icons, drive them with controlled triggers and small delay differences in your own state.

Try it on the home page

The interactive explorer on / lets you swap templates, variants, sizes, and triggers on the fly. The fastest way to find the template that feels right for an icon.