Badge unlocked animation
A locked medal rattles, its padlock springs open and falls away, and the medal flips to full colour.
Change anything, then export a GIF, an MP4 or a transparent video.
Free download
Free for your own projects and client work, including commercial use. Read the licence
What it's good for
It is 800 × 800 pixels and 4.5 seconds long, and it plays once, then rests on its last frame. The background is transparent, so it sits on top of any page, photo or video.
The colours, fonts and timing come from the brand kit you pick. Each brand has its own motion style, so the same animation moves slower for a calm brand and quicker for a snappy one. Type in the box above and the words change as you go.
- The moment someone finishes a signup, order or upgrade
- Launch, birthday and New Year posts
- Win screens in apps and games
How to use it on a website
- Pick your brand and words above, then download the dotLottie file.
- Add it to your site's files, for example as
/animations/badge-unlocked.lottie. - Paste the code where the animation should play.
Without code
- Webflow: upload the Lottie JSON file in the Assets panel, then drag it onto your page.
- Framer: add a Lottie component and give it the JSON file.
- WordPress: use a Lottie block plugin and upload the JSON file.
- iOS and Android: add the file to your app and play it with the official Lottie library.
Need it as a GIF or a video? Download the Lottie JSON and use the free Lottie to GIF or Lottie to MP4 converter, or check any file in the Lottie viewer.
<script src="https://unpkg.com/@lottiefiles/dotlottie-wc/dist/dotlottie-wc.js" type="module"></script>
<dotlottie-wc src="/animations/badge-unlocked.lottie" autoplay aria-hidden="true"
style="width: 100%; aspect-ratio: 1 / 1; pointer-events: none"></dotlottie-wc>
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
export function BadgeUnlocked() {
return (
<DotLottieReact
src="/animations/badge-unlocked.lottie"
autoplay
style={{ width: '100%', aspectRatio: '1 / 1', pointerEvents: 'none' }}
/>
);
}
// npm install lottie-web
// In your HTML: <div id="badge-unlocked" style="width: 100%; aspect-ratio: 1 / 1; pointer-events: none"></div>
import lottie from 'lottie-web';
lottie.loadAnimation({
container: document.getElementById('badge-unlocked'),
renderer: 'svg',
loop: false,
autoplay: true,
path: '/animations/badge-unlocked.json',
});
Good to know
Let clicks pass through
When confetti plays over your page, give it pointer-events: none so people can still click whatever is underneath.
Play it once
Celebrations work best right after the action, played once. Confetti that never stops turns into noise.
Use dotLottie for confetti
Confetti has lots of small pieces, so its files are bigger than an icon's. The zipped dotLottie file is much smaller than the JSON.
Respect reduced motion
Some people ask their device for less motion. Check prefers-reduced-motion and show a still frame for them instead.
Questions
Is this badge unlocked animation free?
Yes. Download the Lottie JSON or dotLottie file above for free, with no account. You can use it in your own projects and in client work, including commercial work. You just can't resell it or give it away as a template or stock file.
Can I change the colours and the words?
Yes. Pick a sample brand above to see how it changes, and type your own words in the box. To use your own colours, fonts and logo, open it in Mosso, where every layer and keyframe is editable.
Should I download Lottie JSON or dotLottie?
dotLottie is the same animation in a zipped file, so it is smaller: this one is about 5.8 KB instead of 39 KB. Use it with the dotLottie players for the web, React, iOS and Android. Pick Lottie JSON when a tool asks for a .json file, like Webflow or lottie-web.
Can I get it as a GIF or a video?
Yes. Open it in Mosso and export a GIF, an MP4, a WebM video with a transparent background or PNG frames, all from the same project.
Is the background transparent?
Confetti is. Where an animation comes with a background, like the night sky behind fireworks, you can switch it off with the Background switch before you download.
Make it yours in Mosso
Change the words, colours, timing and size, add your logo, and export Lottie, GIF, MP4 or transparent video. Or start from a blank canvas and make something new.