Eye-catching pictures and movies are an effective way to impress on-line guests. Nevertheless, practically each web site makes use of them to boost the person expertise (UX). Due to this fact, including these normal visuals to your pages is now not sufficient to make your website stand out from the group.
Happily, you possibly can add Lottie animations to your website to offer you a aggressive edge. LottieFiles offers a free library of animations you possibly can simply add to your web site. Then, you should use them to spice up person engagement and improve your website’s design.
On this submit, we’ll take a more in-depth have a look at some key advantages of utilizing Lottie animations in your website. Then, we’ll present you three easy methods so as to add these visible parts. Let’s get began!
The Advantages of Including Lottie Animations to Your Web site
Whereas movies and pictures could make your web site extra participating, these sorts of visuals are seen everywhere in the web. Alternatively, animations may give you a novel edge.
Plus, the anticipated international marketplace for the animation business is anticipated to rise by 60% over the following 9 years. Which means should you begin utilizing them now, you will get forward of a rising pattern.
In truth, 61% of entrepreneurs used interactive content material as a digital engagement tactic final 12 months. Different methods included GIFs, which will also be used to show animations.
Lottie animations are a wonderful selection, largely because of their small file sizes:
In truth, these information are 600% smaller than GIFs – You’ll be able to add them to your website with out weighing something down. This may mean you can protect a constructive UX.
Higher but, Lottie animations could be fully personalized to swimsuit your model identification. On high of that, it’s an reasonably priced resolution since LottieFiles offers essentially the most intensive, free animation library. You’ll get entry to 1000’s of UI parts, characters, and illustrations.
Get Content material Delivered Straight to Your Inbox
Subscribe to our weblog and obtain nice content material similar to this delivered straight to your inbox.
Easy methods to Add Lottie Animations to Your Web site (3 Methods)
Now that you understand the advantages of utilizing Lottie animations, let’s have a look at 3 ways so as to add them to your website.
Methodology 1: Add Your Animation with oEmbed
Including your Lottie animations by oEmbed is the best technique on this information. The one draw back is that you just received’t be capable to edit the animation settings or set them as much as react to person interactions.
To get began with this technique, browse the LottieFiles animations library to seek out the proper animation to your website. When you discover a design that you just like, click on on the animation and easily copy the oEmbed URL (you’ll need to be logged right into a free account to do that):
Then, head to WordPress and open the web page or submit the place you need to embrace your animation. Subsequent, merely add a brand new Embed Gutenberg block:
Now, paste the oEmbed URL that you just copied from the Lottie web site:
Hit the Embed button to substantiate the motion.
At this level, it is best to see the animation seem in your web page:
As we talked about earlier, you received’t be capable to customise the animation when you’ve added it to your WordPress web page or submit. Due to this fact, it’s essential you make all of the edits you need beforehand whilst you’re nonetheless on the Lottie web site.
Methodology 2: Add Your Animation Utilizing the Lottie block for Gutenberg Plugin
Whereas the oEmbed technique is the best, utilizing the Lottie block for Gutenberg plugin can also be very straightforward. Plus, it permits you to instantly preview any adjustments you make to your designs.
First off, go to Plugins > Add New to put in and activate the Lottie block for Gutenberg plugin in WordPress:
You’ll be able to then log into your LottieFiles account or create an account totally free.
Subsequent, add a brand new block within the Gutenberg editor. Seek for the Lottie block and add it to your web page:
Right here, you’ll discover 3 ways to insert a Lottie animation in WordPress:
- Click on on Uncover animation to browse the LottieFiles library (you’ll want an account to do that).
- Choose Media Library to seek out an animation you’ve beforehand uploaded.
- Hit Insert from url to stick a JSON hyperlink.
Should you select the ultimate technique, you will discover the JSON hyperlink on the Lottie web site:
When you’ve added the animation to your web page, you possibly can preview the design in Gutenberg:
Now, within the Block settings, you possibly can customise your animation. As an illustration, you may give it a clear background, change the size, or set off the animation with totally different actions. You can even use the plugin to add a Lottie animation as a WordPress background.
As a substitute, you must change between Gutenberg and your web site to preview your adjustments. Nonetheless, you could need to use this technique should you’re accustomed to HTML and searching for enhanced customization choices.
To get began with this strategy, click on on the animation within the LottieFiles library and duplicate the Lottie JSON file hyperlink:
Subsequent, scroll down till you see “Use animation in…” and choose <html>:
It will take you to the LottieFiles Net Participant:
Right here, you possibly can select a background colour, decide the animation’s dimension and velocity, and extra.
Now, deselect the Controls checkbox and also you’ll see that some HTML code has been generated on the backside of the display:
Copy the road of code that begins with “<lottie-player>” and ends with “</lottie-player>”. Then, in WordPress, add a brand new Customized HTML block:
Paste the HTML that you just copied from LottieFiles and click on on Save Draft within the high right-hand nook:
To do that, return to the LottieFiles Net Participant and duplicate the script tag that begins with “<script>” and ends with “</script>”:
Now, head to WordPress and set up the Easy Customized CSS and JS plugin:
As soon as lively, go to the plugin’s dashboard and select Add HTML Code:
You may give your code a title like “Provides Lottie Participant”. Then, paste the script tag within the editor and click on on Publish:
Now, return to the web page the place you inserted your HTML code. You need to see your Lottie animation whenever you change to the preview:
If the animation is simply too huge or too small, you possibly can change the default parameters within the HTML code the place it says fashion= “width: X; peak: X;”.
Add Lottie Animations to Your Web site At the moment
Since pictures and movies seem on nearly each web site, together with them in your pages isn’t more likely to make your designs stand out. Nevertheless, you possibly can add Lottie animations to your website to impress guests, mirror your branding, and enhance engagement.
To recap, listed here are 3 ways so as to add Lottie animations to your website:
- Add Lottie animations with oEmbed.
- Add Lottie animations utilizing the Lottie block for Gutenberg plugin.
One other approach to set your web site aside from the remaining is by designing customized pages which can be distinctive to your model. At DreamHost, we are able to construct you a website that’s one-of-a-kind, mobile-friendly, and optimized for serps. Try our internet design plans right this moment!
Get a Stunning Web site You’re Proud Of
Our designers will create a stunning web site from scratch to completely match your model.