Use it in code
Download the file, then copy the code for your platform. It loops, and it stays on the first frame for people who ask for less motion.
- Put
fluent-emoji-airplane-departure-high-contrast.lottiein your site'sanimationsfolder, so it loads from/animations/fluent-emoji-airplane-departure-high-contrast.lottie. - Paste this where it should play.
<script type="module" src="https://cdn.jsdelivr.net/npm/@lottiefiles/dotlottie-wc@0.10.0/dist/dotlottie-wc.js"></script>
<dotlottie-wc src="/animations/fluent-emoji-airplane-departure-high-contrast.lottie" autoplay loop
aria-hidden="true"
style="display: block; width: 200px; height: 200px"></dotlottie-wc>
<script>
// People who ask for less motion see the first frame.
if (matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelectorAll('dotlottie-wc').forEach((el) => el.removeAttribute('autoplay'));
}
</script>