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
iconoir-message.lottiein your site'sanimationsfolder, so it loads from/animations/iconoir-message.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/iconoir-message.lottie" autoplay loop
role="img" aria-label="Message"
style="display: block; width: 48px; height: 48px"></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>