Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Sequences multiple animations using a timeline.
# animejs/demo/timeline.html
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
</head>
<body>
<div id="box1" style="width:50px;height:50px;background:red;margin:10px;"></div>
<div id="box2" style="width:50px;height:50px;background:blue;margin:10px;"></div>
<script>
const tl = anime.timeline({ loop: true });
tl.add({ targets: '#box1', translateX: 250, duration: 1000 })
.add({ targets: '#box2', translateY: 200, duration: 1000 });
</script>
</body>
</html>Anime.js is a lightweight JavaScript animation library that enables developers to create smooth, complex, and performant animations on the web. It works with CSS properties, SVG, DOM attributes, and JavaScript objects.
Origin & Creator
Anime.js was created by Julian Garnier in 2015 as a lightweight, versatile animation library for the web.
Industrial Note
Anime.js is widely used for interactive web applications, marketing pages, dashboards, data visualizations, micro-interactions, and SVG-based animations.