Lottie Animation

Add lightweight animations that bring a section to life.

Lottie animations from a link or the media library — play on load, hover, scroll, click or follow the scroll, with loops, speed, segments, a play/pause button, a poster, lazy loading and a still frame for reduced motion.

Gutenberg block

Requirements

  • The block editor (Gutenberg)
  • WordPress 6.5 or newer
  • PHP 7.4 or newer
  • Licence: Pro ($2 / year) — add it to the cart in Moduly

Add it to a page

  1. Open the page or post in the block editor.
  2. Click + (Block Inserter) and search for Lottie Animation — it is in the Moduly category.
  3. Insert it, then fill in its content on the canvas. Ready-made presets appear when you insert it, and later under Transform to in the block toolbar.
  4. Adjust it in the right sidebar: the Block tab holds the settings below, and the Styles tab its colours, typography and spacing.

Settings

Animation

SettingWhat you can set
Sourceurl or media
LinkText

Playback

SettingWhat you can set
Playload, hover, scroll, click or scrub
LoopOn / off
Number of loops (0 = endless)0–20
Speed0.1–5
Play backwardsOn / off
Start frame0–600
End frame (0 = last)0–600
Renderersvg or canvas
When the pointer leavesreverse, pause, stop or continue
Play once onlyOn / off
Start when the top reaches (% from the bottom)0–100
Finish when the bottom reaches (% from the bottom)0–100
Load when it comes near the screenOn / off
Play / pause buttonOn / off

Reduced motion and fallback

SettingWhat you can set
For visitors who prefer less motionfirst, last or play
Accessible descriptionText
SettingWhat you can set
Width (px, 0 = full width)0–1200
Alignmentleft, center or right
Open in a new tabOn / off
BackgroundColour
Corner radius (px)0–60

Styles tab: spacing, from WordPress's own design tools.

Tips

  • Visitors who ask their device for reduced motion get a calmer, still version automatically.
  • Not sure where to start? Insert one of its presets and edit from there.

Troubleshooting

  • .lottie (dotLottie, zipped) files are not supported; use the JSON export.
  • JSON links on another domain need CORS headers.
  • The demo's animation links point at the dev workspace's build folder (as in earlier batches). On a customer site, the patterns use the installed plugin's own assets/art URLs.
  • A change not showing on the live site is almost always a page cache — clear your caching plugin or host cache.
  • Works well with: Advanced Slider, Animated Heading, Animated Icon.