Source: Articles on Smashing Magazine — For Web Designers And Developers | Read More
This article is a sponsored by SVGator
SVGator has gone through a series of updates since our last article, which was published in 2021, when it was already considered to be the most advanced web-based tool for vector animation. The first step toward more versatile software came with the mobile export feature that made it possible to implement the animations in iOS and Android applications.
The animation tool continued its upgrade with a series of new export options: video formats including MP4, AVI, MKV, MOV, and WebM, as well as image formats such as GIF, Animated PNG, WebP, and image sequence. By covering a larger area of users’ needs, the app now enables anyone to create animated stickers, social media, and newsletter animations, video assets, and many more types of visual content on demand.
The goal of becoming a “one tool for all” still lacked the last piece of the puzzle, namely full support for Lottie files. Lottie, just like SVG, is a vector-based format, but it has even better comprehensive multi-platform support, a fact that makes it super popular among developers and design professionals. It is built for use across various platforms, enabling smooth integration into both web and mobile applications. Its file size is minimal, it is infinitely scalable, and developers find it straightforward to implement once they get familiar with the format. Lottie can incorporate raster graphics and also supports interactivity.
SVGator’s latest version has everything you need for your various applications without the need for any third-party apps or plug-ins.
Note: You can test all of SVGator’s functionalities free of charge before committing to the Pro plan. However, you can export up to three watermarked files, with videos and GIFs limited to basic quality.
In this article, we will follow a creation process made of these steps:
Getting Started With SVGator
The sign-up process is simple, fast, and straightforward, and no credit card is required. Sign up either with Google or Facebook or, alternatively, by providing your name, email address, and password. Start a project either with a Lottie animation or a static SVG. If you don’t have an existing file, you can design and animate everything starting from a blank canvas.
Now that you’ve created your account, let’s dive right into the fun part. Here’s a preview of how your animation is going to look by the time you’re done following this guide. Neat, right?
Create A New Project
After logging in and clicking on the New Project option, you will be taken to the New Project Panel, where you can choose between starting from a blank project or uploading a file. Let’s start this project with an existing Lottie JSON.
Hit play in the editor, and the animation should look like this:
Note: Make sure to hit Save after each step to make sure you don’t lose any of your progress while working on this project alongside our guide.
Import An Animated Asset
In this step, you will learn how to use the Library to import new assets to your project. You can easily choose from a variety of ready-made SVGs stored in different categories, load new files from your computer (Lottie, static SVG, and images), or save animations from other SVGator projects and reuse them.
In this case, let’s use an animated message bubble previously created and saved to the Uploads section of the Library.
Learn how to create and save animated assets with this short video tutorial.
All the animated properties of the asset are now present in the timeline, and you can edit them if you want.
Note: Make sure the playhead is at the second “0” before adding the animated asset. When adding an animated asset, it will always start animating from the point where the playhead is placed.
At this point, you should have the first Position keyframe automatically added at the second 0, and you are ready to start animating.
Animate The Message Bubble
Note: You can hit Play at any moment to check how everything looks!
Next, you can use the Scale animator to make the bubble disappear after the dots representing the typing are done animating by scaling it down to 0 for both the X and Y axes:
Note: To maintain the ratio while changing the scale values, make sure you have the Maintain proportions on (the link icon next to the scale inputs).
To add an extra touch of interest to this scaling motion, add an easing function preset:
Note: You can adjust the bezier of a selected easing preset and create a new custom function, which will appear at the top of the list.
Keep in mind that you need at least one keyframe selected if you intend to apply an easing. The easing function will apply from the selected keyframe toward the next keyframe at its right. Of course, you can apply a certain easing for multiple keyframes at once.
To get a smoother transition when the message bubble disappears, add an Opacity animation of one millisecond at the end of the scaling:
Create An Email Icon
For the concept behind this animation to be complete, let’s create (and later animate) a “new email” notification as a response to the character sending that message.
Once again, SVGator’s asset library comes in handy for this step:
To make the animation even more interesting, create a notification alert in the top-right corner of the envelope:
You can also hit Command or Ctrl + G on your keyboard. Double-click on the newly created group to rename it to “Notification.”
Animate The New Email Group
Let’s animate the new email popping out of the laptop right after the character has finished texting his message:
Animate The Notification
Let’s animate the notification dot separately. We’ll make it pop in while the email group shows up.
Add Expressiveness To The Character
Make the character smile while looking at the email that just popped out. For this, you need to animate the stroke offset of the mouth:
Final Edits
You can still make all kinds of adjustments to your animation before exporting it. In this case, let’s change the color of the initial Lottie animation we used to start this project:
Export Lottie
Once you’re done editing, you can export the animation by clicking on the top right Export button and selecting the Lottie format. Alternatively, you can press Command or Ctrl + E on your keyboard to jump directly to the export panel, from where you can still select the animation you want to export.
Final Thoughts
Now that you’re done with your animation don’t forget that you have plenty of export options available besides Lottie. You can post the same project on social media in video format, export it as an SVG animation for the web, or turn it into a GIF sticker or any other type of visual you can think of. GIF animations can also be used in Figma presentations and prototypes as a high-fidelity preview of the production-ready Lottie file.
We hope you enjoyed this article and that it will inspire you to create amazing Lottie animations in your next project.
Below, you can find a few useful resources to continue your journey with SVG and SVGator: