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!
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.
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.
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.
After you import your Lottie file into XD, control when it will play. Follow these steps to set a playback option:
When you set a playback option for your Lottie in Design mode, associated interactions are automatically set in Prototype mode.
When you choose Play automatically, Time trigger is auto-set with a delay of 0 seconds.
When you choose Play on tap, Tap trigger is auto-set with the default action as Toggle Play/Pause.
When you choose No playback, no interactions are set in Prototype mode.
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.
Change the Lottie playback action of Tap trigger from Toggle Play/Pause to Play or Pause.
Once you set a playback option for your Lottie, explore wiring it with other interactions:
To learn more about prototyping in XD, see Create interactive prototypes.
Now that you learned how to set a playback option for your Lottie and wire it with other interactions, let's try some examples.
Practice prototyping with Lottie animations using the sample files:
Learn how to animate a loading screen using Lottie.
When you complete wiring the interactions, preview the prototype and check the interactions.
Learn how to animate menu items when they are selected.
Set them to a Tap trigger with Action Type as Transition.
In Design mode, create a copy of plant 1 and place it on the artboard. Set it to Play automatically.
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.
Explore more examples involving videos, Lottie animations, and component states.
After wiring the prototype, use any of these options to preview it:
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.
Watch this 2-minute video to learn some pro tips on working with Lottie in XD.
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!
Sign in to your account