Studio Editor: Adding and Customizing Lottie Animation Files

4 min read
Lottie Files is a great source for high-quality animations to add to your client's site. After importing the animation through its URL, you can resize it as needed and decide whether or not it plays in a continuous loop. 
In this article, learn how to:
始める前に
In order to import an animation, you need have a LottieFiles account. 

Importing animations from LottieFiles

Add as many Lottie animations as you need to liven up your design. After saving an animation to your workspace in LottieFiles, you can copy the URL and paste it directly into the Studio Editor. The animation is instantly added as a new page element.
A GIF showing you can paste animations from lottie directly into the Studio Editor
Alternatively, you can add a new Lottie Animation element and paste the relevant URL in the Settings panel. 

To add a Lottie Animation element:

  1. クリック エレメントの追加  エディターの左側にある
  2. Click Embed & Social.
  3. Click Lottie Animations.
  4. Click the Add to Site icon next to Lottie Animation.


  5. (In a separate browser tab) Copy the saved animation's URL from your LottieFiles account.
  6. Paste the animation's URL in the Editor:
    1. Click the Lottie Animation element in the Editor.
    2. Click the Settings icon .
    3. Paste the URL under What's the animation's URL?.
    4. Press Enter on your keyboard.
What's next?
Click Preview animation at the top of the Settings panel to see how it looks before going live.
Adding a new lottie element to the Editor and embedding the animation link from the Settings panel
Working with breakpoints:
You can customize the size of the Lottie animation per breakpoint, so it looks ideal on every screen. 

Changing the Lottie animation

If you want to switch to a different Lottie animation, you can easily do so by pasting the new URL in the element's Settings panel. 

To change the animation:

  1. Select the Lottie Animation element.
  2. Click the Settings icon .
  3. Paste the new animation's URL under What's the animation's URL?.
A GIF showing where to copy the Lottie animation URL, and how it changes instantly on the canvas once you do

Setting the animation to play in a loop

You can choose how the Lottie animation plays on your client's site – only once, or in a continuous loop. 

To set how the animation plays:

  1. Select the Lottie Animation element.
  2. Click the Settings icon .
  3. Click the toggle next to Plays in a loop to turn it on or off.
A screenshot of the toggle in the Settings panel that controls the way the lottie animation plays

Adding alt text to a Lottie animation

From the Settings panel, add alt text to briefly describe the animation and / or the site. This can improve the site's SEO ranking while helping users with screen readers to understand what the animation is showing. 

To add alt text to your animation:

  1. Select the Lottie Animation element.
  2. Click the Settings icon .
  3. Scroll down to Animation Text.
  4. Enter the text description under Write alt text for your animation.
  5. Press Enter on your keyboard.
Adding alt text to a Lottie animation element
You should know:
Lottie animations are automatically converted to JSON files when you import them to a Wix site. For technical reasons, not all of the file fields can be contained. Lottie animations may therefore look slightly different on a live Wix site (e.g. displaying a reduced range / amount of motion). 

これは役に立ったか?

|