User Guide Cancel

Work with Lottie animations

  1. Adobe XD User Guide
  2. Introduction
    1. Release updates
    2. Common questions
    3. Design, prototype, and share with Adobe XD
    4. Color Management
    5. System requirements
      1. Hardware and software requirements
      2. Adobe XD, Big Sur, and Apple silicon | macOS 11
    6. Workspace basics
    7. Change app language in Adobe XD
    8. Access UI design kits
    9. Accessibility in Adobe XD
    10. Keyboard shortcuts
    11. Tips and tricks
  3. Design
    1. Artboards, guides, and layers
      1. Get started with artboards
      2. Use guides and grids
      3. Create scrollable artboards
      4. Work with layers
      5. Create scroll groups
    2. Shapes, objects, and path
      1. Select, resize, and rotate objects
      2. Move, align, distribute, and arrange objects
      3. Group, lock, duplicate, copy, and flip objects
      4. Set stroke, fill, and drop shadow for objects
      5. Create repeating elements
      6. Create perspective designs with 3D transforms
      7. Edit objects using Boolean operations
    3. Text and fonts
      1. Work with drawing and text tools
      2. Fonts in Adobe XD
    4. Components and states
      1. Work with components
      2. Work with nested components
      3. Add multiple states to components
    5. Masking and effects
      1. Create a mask with shapes
      2. Work with blur effects
      3. Create and modify gradients
      4. Apply blend effects
    6. Layout
      1. Responsive resize and constraints
      2. Set fixed padding for components and groups
      3. Create dynamic designs with stacks
    7. Videos and Lottie animations
      1. Work with videos
      2. Create prototypes using videos
      3. Work with Lottie animations
  4. Prototype
    1. Create interactive prototypes
    2. Animate prototypes
    3. Object properties supported for auto-animate
    4. Create prototypes with keyboard and gamepad
    5. Create prototypes using voice commands and playback
    6. Create timed transitions
    7. Add overlays
    8. Design voice prototypes
    9. Create anchor links
    10. Create hyperlinks
    11. Preview designs and prototypes
  5. Share, export, and review
    1. Share selected artboards
    2. Share designs and prototypes
    3. Set access permissions for links
    4. Work with prototypes
    5. Review prototypes
    6. Work with design specs
    7. Share design specs
    8. Inspect design specs
    9. Navigate design specs
    10. Review and comment design specs
    11. Export design assets
    12. Export and download assets from design specs
    13. Group sharing for enterprise
    14. Back up or transfer XD assets
  6. Design systems
    1. Design systems with Creative Cloud Libraries
    2. Work with document assets in Adobe XD
    3. Work with Creative Cloud Libraries in Adobe XD
    4. Migrate from linked assets to Creative Cloud Libraries
    5. Work with design tokens 
    6. Use assets from Creative Cloud Libraries
  7. Cloud documents
    1. Cloud documents in Adobe XD
    2. Collaborate and coedit designs
    3. Coedit documents shared with you
  8. Integrations and plugins
    1. Work with external assets
    2. Work with design assets from Photoshop
    3. Copy and paste assets from Photoshop
    4. Import or open Photoshop designs
    5. Work with Illustrator assets in Adobe XD
    6. Open or import Illustrator designs
    7. Copy vectors from Illustrator to XD
    8. Plugins for Adobe XD
    9. Create and manage plugins
    10. Jira integration for XD
    11. Slack plugin for XD
    12. Zoom plug-in for XD
    13. Publish design from XD to Behance
  9. XD for iOS and Android
    1. Preview on mobile devices
    2. Adobe XD on mobile FAQ
  10. Troubleshooting
    1. Known and fixed issues
      1. Known issues
      2. Fixed issues
    2. Installation and updates
      1. XD appears as not compatible on Windows
      2. Error code 191
      3. Error code 183
      4. Issues installing XD plugins
      5.  Prompt to uninstall and reinstall XD on Windows 10
      6. Issues with preferences migration
    3. Launch and crash
      1.  XD crashes when launched on Windows 10
      2.  XD quits when you sign out of Creative Cloud
      3. Issue with subscription status on Windows
      4. Blocked-app warning when launching  XD on Windows
      5. Crash dump generation on Windows
      6. Crash log collection and sharing
    4. Cloud documents and Creative Cloud Libraries
      1. Issues with XD cloud documents
      2. Issues with linked components
      3. Issues with libraries and links
    5. Prototype, publish, and review
      1. Unable to record prototype interactions on macOS Catalina
      2. Issues with publish workflows
      3. Published  links do not appear in browsers
      4. Prototypes do not render correctly in browsers
      5. Commenting panel suddenly showing up on shared links
      6. Unable to publish libraries
    6. Import, export, and working with other apps
      1. Import and export in XD
      2. Photoshop files in XD
      3. Illustrator files in XD
      4. Export to After Effects from XD
      5. Sketch files in XD
      6. Third-party apps not visible in Export

Learn how to import and use Lottie to design rich animations in Adobe XD.

Lottie is a light animation format that can be exported from Adobe After Effects as JSON files. Lottie files are smaller in size compared to formats like animated GIFs and PNGs. Developers can reuse Lottie files in their code.

Import Lottie and set a playback option
Import Lottie and set a playback option

XD allows you to import Lottie files and control Lottie playback. After setting Lottie playback and wiring your prototype, you can preview it before sharing.

Suggested reading

Import Lottie files

To import your Lottie file into XD, drag it to an artboard. Alternatively, choose File > Import.

Once imported, the first frame of the Lottie is displayed on canvas. If the first frame of the Lottie is blank, you see a blank frame on canvas. In such cases, use the Layers panel to locate the Lottie. 

When you select the Lottie in Design mode, you see a play icon   in its upper-left corner.

Set a playback option

Set a playback option for your Lottie
Set a playback option for your Lottie

After you import your Lottie file into XD, control when it will play. Follow these steps to set a playback option:

  1. In Design mode, select the Lottie asset on canvas.
  2. In the Animations section of the Property Inspector, choose a preset:
  3. If you want your Lottie to play on loop, click the Loop Playback button   .

Playback options and associated interactions

When you set a playback option for your Lottie in Design mode, associated interactions are automatically set in Prototype mode.

Play automatically

When you choose Play automatically, Time trigger is auto-set with a delay of 0 seconds.

Play automatically- Design mode

Play automatically- Prototype mode

Play on tap

When you choose Play on tap, Tap trigger is auto-set with the default action as Toggle Play/Pause.

Play on tap- Design mode

Play on tap- Prototype mode

No playback

When you choose No playback, no interactions are set in Prototype mode.

Customize Lottie playback

Choose Edit playback to customize playback
Choose Edit playback to customize playback

To customize Lottie playback, in the Animations section of the Property Inspector, select Edit playback.

When you select Edit playback, you automatically switch to Prototype mode.

In Prototype mode, opt for any of these customizations:

Choose one of these triggers: Time (set Delay to more than 0 s), Keys & Gamepad, or Voice.

Customize playback by choosing Time trigger with Delay set to more than 0 seconds
Choose Time trigger with Delay set to more than 0 s

Change the Lottie playback action of Tap trigger from Toggle Play/Pause to Play or Pause.

Customize playback by choosing Tap trigger with Play or Pause as the action
Choose Tap trigger with Play or Pause as the action

Use Lottie playback with other interactions

Lottie with an End of Playback trigger that transitions to an artboard
Lottie with an End of Playback trigger that transitions to an artboard

Once you set a playback option for your Lottie, explore wiring it with other interactions:

  • Set an End of Playback interaction for Lottie to trigger an action after it plays.
  • Play multiple Lottie animations automatically at the same time (maximum of 20).
  • Play Lottie animations with a video at the same time.

To learn more about prototyping in XD, see Create interactive prototypes.

Examples of prototyping

Now that you learned how to set a playback option for your Lottie and wire it with other interactions, let's try some examples.

Download sample files

Practice prototyping with Lottie animations using the sample files:

Example 1: Animate loading screen

Learn how to animate a loading screen using Lottie.

Ex 1-artboard 1

  1. In Design mode, import plant-loading.json and place it on the artboard. Set it to Play automatically.
  2. In Prototype mode, wire the Lottie to Ex 1-artboard 2, and set it to an End of Playback trigger with Action Type as Transition.

When you complete wiring the interactions, preview the prototype and check the interactions.

Example 2: Animate a menu selection

Learn how to animate menu items when they are selected.

Ex 2-artboard 1

  1. In Design mode, import plant 1 (Spearmint) and plant 2 (Sansevieria) files, and place them in the respective containers. Set them to No playback.
  2. In Prototype mode:
  • Wire plant 1 and its container to Ex 2-artboard 2.
  • Wire plant 2 and its container to Ex 2-artboard 3.

Set them to a Tap trigger with Action Type as Transition.

Ex 2-artboard 2

In Design mode, create a copy of plant 1 and place it on the artboard. Set it to Play automatically.

Ex 2-artboard 3

In Design mode, create a copy of plant 2 and place it on the artboard. Set it to Play automatically.

When you complete wiring the interactions, preview the prototype and check the interactions.

More examples

Explore more examples involving videos, Lottie animations, and component states.

Preview your prototype and share

Preview prototype in-app, on a mobile device, or on a browser
Preview prototype in-app, on a mobile device, or on a browser

When your design is ready to be shared with stakeholders, set appropriate access permissions and publish the prototype or design specs link, and share it.

Learn more

Watch this 2-minute video to learn some pro tips on working with Lottie in XD.

Current limitations

  • You can import only Lottie files less than 15 MB into XD. There are no limits on the number of Lottie files that can be in a single XD document.
  • Lottie will not play automatically if a video is set to play automatically.
  • Lottie will stop if other prototyping triggers are initiated.
  • If a Lottie animation uses a desktop font, the font will not show up in web playback.
  • You can't override Lottie in a Repeat Grid.
  • You can't import Lottie animations referencing an external resource such as an image.
  • You can't import a JSON file that is not a Lottie JSON.

Related resources

Have a question or an idea?

ask the community

Have a question to ask or an idea to share? Come and participate in Adobe XD Community. We would love to hear from you and see your creations!

 Adobe

Get help faster and easier

New user?