header-logo
Getting started with WixBuild your website and business with Wix. Try using our AI tools to create your website, customize templates, or hire professionals to build or enhance your online presence.
Creating a websiteRead how to use the Wix Editor and manage content on your site. Discover how to protect your visitors' privacy and make your site accessible.
Account & billingReview your account settings, manage your subscriptions and plans and understand your invoices.
Using the Wix mobile appsUse our mobile apps to run your business efficiently on the go and set up a dedicated app for your site members to stay in touch.
Connecting a domainFollow our step-by step guides to learn how to purchase, connect or transfer a domain for your site, and find out how to keep your site’s data secure.
Managing your businessGet tools to grow your business and web presence. Find the right tools for your specific needs, set up online payments and keep track of your site's analytics.
Promoting your siteLearn to make your site more visible promoting it on search engines, sending emails and running paid ads. Improve your online presence with practical tips.
Studio, Partners & EnterpriseGet the most out of your Studio or Enterprise account with advanced features that'll help you work more efficiently.
Need more help?Find solutions for site performance and technical issues, learn about issues we’re working to fix or contact us for help.
placeholder-preview-image
Wix LearnImprove your skills with our courses and tutorials.
Wix BlogGet tips for web design, marketing and more.
SEO Learning HubLearn to increase organic site traffic from search engines.
Website developmentBuild a custom site using our full-stack platform.
Hire a ProfessionalGet matched with a specialist to help you reach your goals.
placeholder-preview-image
In this article
  • Importing animations from LottieFiles
  • Changing the Lottie animation
  • Setting how the animation plays
  • Adding an accessible name to a Lottie animation

Studio Editor: Adding and Customizing Lottie Animation Files

In this article
  • Importing animations from LottieFiles
  • Changing the Lottie animation
  • Setting how the animation plays
  • Adding an accessible name to a Lottie animation
LottieFiles is a great source for high-quality animations to add to your client's site. After importing the animation through its JSON URL, you can resize it as needed and decide whether or not it plays in a continuous loop. 
Before you begin:
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 JSON 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. 
Important:
Wix only supports Lottie URLs in the JSON format.

To add a Lottie Animation element:

  1. Click Add Elements  on the left side of the Editor.
  2. Click Media.
  3. Click Lottie.
  4. Click the Add to Site icon next to Lottie Animation.

    The Add Elements panel is open in the Studio Editor. The cursor is clicking to add a lottie animation to the site.
  5. (In a separate browser tab) Copy the saved animation's JSON URL from your LottieFiles account.
  6. Paste the animation's URL in the Editor:
    1. Click the Lottie 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 how the animation plays

Using the toggles, you can choose how the Lottie animation plays on your client's site. Choose whether it plays in a continuous loop, and add a pause/play button to give site visitors more control.

To set how the animation plays:

  1. Select the Lottie animation element.
  2. Click the Settings icon .
  3. Use the toggles to set the animation's behavior:
    • Plays in a loop:
      • Enabled: The animation plays continuously on a loop while visitors are on the page.
      • Disabled: The animation only plays once when the page loads.
    • Show pause/play button:
      • Enabled: Visitors can pause and play the animation as needed.
      • Disabled: Visitors cannot pause or un-pause (play) the animation.
The settings panel of a lottie animation element. The two toggles are highlighted.

Adding an accessible name to a Lottie animation

Add an accessible name to your animation from the Settings panel. Accessible names inform visitors using assistive technologies of the animation's purpose and content, and may improve the site's SEO ranking
You can also mark the animation as decorative if it's not a necessary part of the page's content or function. 

To add an accessible name:

  1. Select the Lottie animation element.
  2. Click the Settings icon .
  3. Scroll down to Accessibility and choose what you want to do:
    • Enter the text description under Accessible name.
    • Mark the animation as decorative by selecting the checkbox.
The settings panel of a Lottie animation. The cursor is clicking the accessible name field.
You should know:
Only Lottie files in the JSON format are supported on Wix sites. For technical reasons, not all of the file fields on JSON files can be contained. Lottie animations may therefore look slightly different on a live Wix site (e.g. displaying a reduced range / amount of motion). 

Helpmate

Hello

Need a bit more guidance?
Unlock personalized helpLog in to get the most out of Helpmate.