Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Plays the Lottie animation only when the user hovers over it.
# lottiefiles/demo/hover.html
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.9.6/lottie.min.js"></script>
</head>
<body>
<div id="hoverAnim" style="width:150px;height:150px;"></div>
<script>
const anim = lottie.loadAnimation({
targets: document.getElementById('hoverAnim'),
path: 'data/hover.json',
renderer: 'svg',
loop: false,
autoplay: false
});
document.getElementById('hoverAnim').onmouseenter = () => anim.play();
</script>
</body>
</html>LottieFiles is a platform and library ecosystem for rendering and sharing lightweight, high-quality animations on web, mobile, and desktop. It uses JSON-based Lottie animations exported from Adobe After Effects via Bodymovin, enabling scalable, interactive animations without heavy asset overhead.
Origin & Creator
Lottie was created by Airbnb in 2017, and LottieFiles emerged as a community platform to host, share, and manage Lottie animations.
Industrial Note
LottieFiles is widely used in app onboarding flows, interactive UI elements, micro-interactions, marketing sites, and mobile app animations, especially when lightweight, scalable, and responsive animations are critical.