Lottie
This page shows you how to add a Lottie animation to a design and control how it plays.
A Lottie file is an animation in .json or .lottie form.
How to add a Lottie animation
- Drop the file on the canvas, or import it.
- Brsh makes a rectangle at the animation's size with a Lottie fill.
You can also give a Lottie fill to any rectangle or frame. The file is kept inside the .brsh file. See The .brsh file format.
A rectangle with a Lottie shows a film icon in the layers list. The panel says Lottie.
How to set up the animation
Select the layer. In the Prototype tab, find the Lottie section. It comes after Motion.
- Check the file name and length.
- Click Replace to pick another
.jsonor.lottiefile. - Set Fit: Fit, Fill or Stretch.
- Set Speed.
- Turn Loop on or off.
- Set Still frame. This is the frame the canvas shows. Double-click for the first frame.
- At the end of the section, click Preview to play it on the canvas. The button becomes Stop while it plays.
How to change its colours
- In the Lottie section, find Colours.
- Change a colour of the animation.
- Or link it to a colour variable, so the animation follows the theme. See Variables and themes.
How it plays
- The canvas shows one still frame. Editing stays fast.
- Play plays the animation from the moment the screen shows. It runs at its speed, loops or stops on the last frame, and plays only while in view.
- Exports show the still frame.
Other fills on the same layer
On a Lottie layer, the Fill section lists only the other paints. Its + adds a background. The background always draws under the animation.
Known limit
A Lottie fill inside a component instance shows its still frame in Play. It plays only on a layer of its own. See Known limits.