1. Home
  2. /
  3. Animejs
  4. /
  5. Bounce Animation

Bounce Animation - Animejs Typing CST Test

Loading…

Bounce Animation — Animejs Code

A div bouncing vertically with easeOutBounce.

# animejs/demo/bounce.html
<html>
	<head>
		<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
	</head>
	<body>
		<div id="ball" style="width:100px;height:100px;background:blue;"></div>
		<script>
		anime({
		targets: '#ball',
		y: 300,
		duration: 1000,
		repeat: Infinity,
		yoyo: true,
		easing: 'easeOutBounce'
		});
		</script>
	</body>
</html>

Animejs Language Guide

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.

Primary Use Cases

  • ▸Animating CSS properties like opacity, transform, and color
  • ▸SVG morphing and path animations
  • ▸UI micro-interactions (buttons, menus, modals)
  • ▸Data visualizations and chart animations
  • ▸Sequenced animations via timelines

Notable Features

  • ▸CSS, SVG, DOM, and JS object animation support
  • ▸Powerful easing functions and custom easing
  • ▸Timeline control for synchronized sequences
  • ▸Animation looping and direction control
  • ▸Callback events for animation lifecycle (begin, update, complete)

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.

More Animejs Typing Exercises

Simple Anime.js AnimationRotate AnimationScale PulseColor ChangeTranslate XYTimeline ExampleStaggered AnimationElastic AnimationRotate and Scale

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher