Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Anime

Security covered Under active development 81 sites

This module integrates the Anime.js JavaScript library into Drupal, providing a powerful engine for creating interactive and engaging animations. It allows developers to animate various web elements like CSS properties, SVG, and DOM attributes to enhance user experience.

Anime brings Anime.js to Drupal. It makes the library available to JavaScript in themes and custom modules.

Anime.js can animate CSS properties, SVG, DOM attributes, and JavaScript objects. Animations are written in JavaScript; the module does not provide a visual animation editor.

Anime for Drupal: Bringing fast, lightweight, and versatile JavaScript animations to Drupal, powered by Anime.js.

Choosing a module version

  • Anime 1.x: Supports Drupal 8.8, 9, 10, and 11. Recommended for existing sites using the stable 1.x release line. It does not support Drupal 12.
  • Anime 2.x (beta): Targets Drupal 11.3+ and Drupal 12. Choose this line when preparing for Drupal 12, and check its release status before using it on a production site.

These are versions of the Drupal module, not versions of the Anime.js library. Both module lines support local Anime.js 3 and 4. You do not need Anime 2.x just to use Anime.js 4. See the available releases.

Features

  • Integrates Anime.js with Drupal's asset library system.
  • Detects supported local Anime.js 3.x and 4.x browser bundles.
  • Prefers Anime.js 3 when both major versions are installed locally.
  • Uses Anime.js 3.2.2 from a CDN when no supported local build is found.
  • Reports the selected library and any ignored or invalid copies on Drupal's status report.

Installation

  1. Install a module release compatible with your Drupal version. For the stable 1.x line, use composer require 'drupal/anime:^1.0'. For 2.x, follow the selected release instructions.
  2. Enable the Anime module.
  3. Optionally install a local Anime.js browser bundle. For v3, use /libraries/anime/lib/anime.min.js. For v4.2+, use /libraries/anime/dist/bundles/anime.umd.min.js. Other supported locations and older v4 layouts are described in the README.

A local library is optional. Without one, the module falls back to the Anime.js 3.2.2 CDN. Clear Drupal caches after adding, replacing, or removing local library files. The selected version is shown at /admin/reports/status.

Usage

Add your animation code to a JavaScript file in your theme or module. Use the API for the Anime.js major version that is loaded.

Anime.js 3

anime({
  targets: '.animated-element',
  translateX: 250,
  duration: 800
});

Anime.js 4.x (UMD)

anime.animate('.animated-element', {
  translateX: 250,
  duration: 800
});

Both examples move an element 250 pixels to the right. Anime.js 3 uses the anime() function, while Anime.js 4 uses anime.animate().

Note: Anime.js 3 and 4 use different APIs. Existing v3 animations are not automatically converted to v4. When both versions are installed locally, the module loads v3 by default to preserve existing integrations.

Documentation and support

Similar projects

  • Scene — timeline-based animation
  • Vivus — SVG drawing animations
  • Textimate — text animation effects
  • Splitting.js — text splitting for visual effects

Use animations thoughtfully and respect reduced-motion preferences.

Drupal 8–11

Ask your assistant about Anime

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
9
Tracked since
Oct 2023
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.4 Stable 8–11 Oct 29, 2026
2.0.0-beta1 Pre-release 11 PHP >=8.3 Oct 29, 2026
2.0.x-dev Dev 11 PHP >=8.3 Oct 29, 2026
1.0.3 Stable 8–11 Jun 15, 2024
1.0.2 Stable 8–11 Jun 6, 2024
1.0.x-dev Dev 8–11 Jun 5, 2024
1.0.1 Stable 8–10 Nov 9, 2023
1.0.0 Stable 8–10 Oct 30, 2023
1.0.0-beta1 Pre-release 8–10 Oct 20, 2023