Lottie Theming

The Lottie theming is a powerful feature that allows you to customize your Lottie animations by changing animated properties such as colors, sizes, and more.

We are pleased to introduce that we have now add the Theming feature on your workspace that allows users to apply and switch between multiple color themes in their animations, providing flexibility in design. This feature makes it easier to align animations with various brand or style guidelines, ensuring consistency without needing multiple animation files!



How to Apply a Theme to a Lottie Animation in Your Workspace

  1. Open the animation in your workspace.
  2. Click on the "Create Theme" button located on the bottom bar next to the player controls.
  3. You will be redirected to the Lottie Creator tool to add your theme.
  4. Follow the on-screen instructions:
    • A theming window will pop up where you can create a new theme.
    • Select your preferred colors to apply to specific layers within the animation.
  5. Save the animation and reopen it in your workspace.
  6. Switch between themes:
    • Click the theming button again in your workspace.
    • You will now see the option to switch between the default theme and the new theme you created.

Once saved, the new themes will be embedded within the .lottie file. When you download the file, it will contain all the theme settings, ready for reuse or further customization.



Implement Lottie with Various Themes for Handoff

After applying themes, the animation can easily be shared or implemented using the handoff feature:

  1. Click the "Handoff" button within the workspace.
  2. Select the theme to embed:
    • In the dropdown labeled "Theme to Embed", choose the desired theme from your saved options.
  3. Copy the generated code:
    • The selected theme will be applied automatically to the code, which you can copy and integrate into your project.

This allows seamless theme application during handoff, ensuring that animations reflect the selected color palette across different platforms.

This functionality saves time and ensures that users don’t need to create separate animation files for each design variation.

Note: This theming feature works only with .lottie files and the dotLottie player. Other formats (such as .json) do not support theming, so you will need to use the dotLottie player code for theming to function properly.




FAQs:

Q1. Can I change the theme after downloading the animation?

A: Yes, since the themes are embedded within the .lottie file, you can switch between them at any time by loading the file into the Lottie Creator.

Q2. How many themes can I add to a single animation?

A: There is no strict limit to the number of themes. You can create as many themes as needed, provided your animation's structure supports multiple color mappings.

Q3. Does theming affect animation performance?

A: No, applying themes has a minimal impact on performance since only color properties are modified without re-rendering the animation.

Q4. Can I share an animation with a specific theme already applied?

A: Yes, during the handoff process, select the theme you want to embed in the animation’s code. The theme will be reflected when you implement it.

Q5. What file types support theming?

A: The theming feature is available for .lottie files. Other file formats like .json do not retain theme settings.

Q6: Does theming work on mobile?

A: Yes, theming works seamlessly with dotLottie iOS and Android players, allowing users to switch themes directly on mobile devices.

More details on Lottie Theming: https://developers.lottiefiles.com/docs/tools/dotlottie-js/theming/

Updated

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.