Skip to content
المشاريع

حول

محرك رسوم متحركة بلغة JavaScript.

التصميم والوسائط

كيف تُقاس هذه الأرقام

75,493 نجمة5,146 التفرعات +30 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+٣٠
خلال 7 أيام
+٣٤٥
خلال 15 يومًا
+٥٨٦
خلال شهر
+١٬٢٠٥

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Anime.js

The Anime.js v5 logo animation in the Anime.js editor

Anime.js is a fast, versatile and lightweight animation engine for the web, with a simple yet powerful API and a visual editor.
It works with CSS, SVG, HTML, WebGL, WebGPU and Canvas2D objects.

NPM Downloads jsDelivr hits (npm) GitHub Sponsors

Sponsors

Anime.js is 100% free and is only made possible with the help of our sponsors. Help the project become sustainable by sponsoring us on GitHub Sponsors.

Platinum sponsors

Silver sponsors

Get featured here by becoming a GitHub Sponsor.

Usage

Anime.js 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
});
Anime.js code example

Documentation

The full documentation is available here.

Migration guides

Coming from V4, the breaking changes are listed in the V5 release notes. Coming from V3, follow the v3 to v4 migration guide here first.

NPM development scripts

First, run npm i to install all the necessary packages. Then, execute the following scripts with npm run <script>.

script action
dev Watches for changes in src/**/*.js, builds the ESM and CJS modules to dist/modules/ and creates type declarations next to them
build Builds the ESM and CJS modules to dist/modules/, the ESM and UMD bundles to dist/bundles/, and creates type declarations in dist/modules/
test Builds, then runs the type checks and the Node and browser test suites
test:browser Starts a local server and runs all browser-related tests
test:headless Runs the browser test suite in headless Chrome and reports pass / fail
test:node Starts Node-related tests
typecheck Checks the types of the source, the tests and the examples
open:examples Serves the examples with an index of all pages. They run dist/modules/, so run dev beside it
open:examples:editor Serves the examples with the Anime.js editor
open:playground Serves the test playground pages with an index of all pages, run dev beside it
open:playground:editor Serves the test playground pages with the Anime.js editor

© Julian Garnier | MIT License

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…