Creating Lottie Files: Illustrator & After Effects Tutorial for Webflow

Published on
December 31, 2020

How to Create Lottie Files Using Illustrator and After Effects for Webflow Projects

If you're looking to enhance your Webflow projects with eye-catching animations, Lottie files are a great way to go. Lottie is a library for Android, iOS, Web, and Windows with tools to render vector animations and graphic files. In this tutorial, we will cover the basics of building Lottie files using vector graphics created with Illustrator and animated in After Effects. This tutorial is perfect for beginners who want to add motion to their Webflow projects.

Getting Started with Vector Lotties

Vector lotties provide the advantage of scalability and flexibility. We'll start by creating a simple swoosh animation using vector graphics in Illustrator and then animating it in After Effects.

Creating the Vector File in Illustrator

  1. Preparing the Illustrator File: Open Adobe Illustrator and create the design or shape that you want to animate. Ensure that your design is a clean vector file without any gradients, effects, or opacities applied to make it compatible with as many devices as possible.

  2. Sizing the Artboard: If your design is small, consider scaling it up to work with it more easily in After Effects. Use the Artboard tool to resize the artboard to match your artwork size.

  3. Naming the Layers: Organize your layers and name them appropriately for easy identification in After Effects.

Importing to After Effects and Creating the Animation

  1. Importing to After Effects: After saving the Illustrator file, drag it into your After Effects project to start importing it.

  2. Creating Vector Layers: In After Effects, right-click on the imported layer, select "Create" and then choose "Shapes from Vector Layer" to convert it into a vector layer for animation.

  3. Animating the Vector Layer: Use the pen tool to draw a line over the shape and use it as a clipping mask to reveal the shape underneath. Add the "Trim Paths" animation to start animating the line's appearance.

  4. Exporting as Lottie File: Once the animation is ready, use the Bodymovin extension to export the animation as a Lottie file by selecting the folder, naming the animation, and clicking "Save."

Using Bodymovin for Export

Bodymovin is a plugin that allows you to export animations for web and mobile. To export your animation as a Lottie file, follow these steps:

  1. Install Bodymovin: Install the Bodymovin extension in After Effects.

  2. Set Export Settings: Launch Bodymovin from the Extensions menu and check the export settings. Ensure that the necessary options are selected, such as the vector format and destination folder.

  3. Exporting the Lottie File: Select the folder where you want to save the Lottie file, name the file, and click "Save."

Creating Animated Characters and Objects

Moving on from a simple swoosh animation, we can also create more complex animations using multiple vector layers in After Effects.

Designing & Importing the Vector Graphics

  1. Preparing the Vector Files: Design the separate elements of your character or object in Illustrator, keeping each element on its own layer.

  2. Importing to After Effects: Import the vector files into After Effects and convert them to vector shapes to prepare for animation.

Linking & Animating the Layers

  1. Linking the Layers: Use the parenting feature in After Effects to link related layers together, allowing them to move or animate independently while remaining connected.

  2. Animating the Elements: Apply animations to the individual elements, such as scaling, rotating, and moving, to bring your character or object to life.

  3. Exporting as Lottie Files: Utilize Bodymovin to export the complete animated sequence as a Lottie file, following the same export process as before.

Integrating Lottie Files into Webflow

After exporting your Lottie files, you can easily integrate them into your Webflow projects to add engaging animations to your website.

Uploading Lottie Files to Webflow

  1. Add the Lottie Component: In Webflow, you can use the Lottie component to incorporate Lottie animations onto your webpages.

  2. Uploading the Lottie Files: Upload the exported Lottie files to your assets in Webflow.

  3. Embedding the Lottie Animation: Drag the Lottie component onto your webpage and select the uploaded Lottie file to see the animation in action.

  4. Customizing the Animation: Use Webflow's interactions features to trigger and customize the animations based on scroll, hover, or click events.

Conclusion

By following these steps, you can create captivating Lottie animations for your Webflow projects using Illustrator, After Effects, and the Bodymovin extension. Whether it's simple lines, shapes, or complex character animations, incorporating Lottie files will enhance the visual appeal and user experience of your websites.

With the seamless integration of Lottie files into Webflow, you can bring your designs to life with captivating and interactive animations, making your web projects visually compelling and engaging for your audience.