RepoPilot

juliangarnier / anime

Search juliangarnier/anime

GitHub

Get started

Taken from the repository's own files on 21 Oct 2026. RepoPilot has not run these commands.

Prerequisites

Commands

package.json
TaskRunWhat it runs
devnpm run devnodemon --quiet --watch src --ext js --exec "rollup -c && tsc -p tsconfig.types.json && echo '\n\033[32m✓ modules and types compiled\n\033[36m⊙ watching for changes...\n\033[0m'"
buildnpm run buildrm -rf dist && build=true rollup -c && tsc -p tsconfig.types.json && echo '\n\033[32m✓ build completed\n\033[0m'
typechecknpm run typechecktsc -p . && tsc -p tests && tsc -p examples

Install and use

README.md

Anime.js V4 works by importing ES modules like so:

import {
  animate,
  stagger,
} from 'animejs';

animate('.square', {
  x: 320,
  rotate: { from: -180 },
  duration: 1250,
  delay: stagger(65, { from: 'center' }),
  ease: 'inOutQuint',
  loop: true,
  alternate: true
});

Open README.md

Developing

CONTRIBUTING.md

Anime.js is written in JavaScript and the type definitions are generated from JSDoc annotations.

JSDoc types used globally in the project are defined in the src/types.js file. Otherwise, JSDoc types should be defined directly in their corresponding file.

Before opening a PR, follow these steps to properly build and test the project:

  1. Make sure your PR has a bug report or new feature proposal issue associated with it. If not, create one.
  2. Clone your fork to your computer.
  3. Install the NPM dependencies with npm i.
  4. Modify or add .js files in /src, with valid JSDoc annotations.
  5. Run npm run dev-types to build the anime.esm.js and index.d.ts files by watching changes in /src.
  6. Add the necessary tests to the relevant file in /test/suites/.
  7. Run npm run test-browser to make sure you haven't broken anything and all tests are passing.
  8. Create a pull request on the dev branch.

Open CONTRIBUTING.md