@foundry-vtt-types/animejs

中文文档
4.3.6发布于 2026/10/26MITTypeScriptESM + CJS零依赖近 30 天下载 1969

JavaScript animation engine

原始使用文档
文档目录7 节
  1. Sponsors
  2. Platinum sponsors
  3. Silver sponsors
  4. Usage
  5. V4 Documentation
  6. V3 Migration guide
  7. NPM development scripts

Anime.js

Anime.js V4 logo animation

Anime.js is a fast, multipurpose and lightweight JavaScript animation library with a simple, yet powerful API.
It works with CSS properties, SVG, DOM attributes and JavaScript 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 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
});
Anime.js code example

V4 Documentation

The full documentation is available here.

V3 Migration guide

You can find the v3 to v4 migration guide here.

NPM development scripts

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

scriptaction
devWatches for changes in src/**/*.js, bundles the ESM version to lib/ and creates type declarations in types/
dev:testRuns dev and test:browser concurrently
buildBundles ESM / UMD / CJS / IIFE versions to lib/ and creates type declarations in types/
test:browserStarts a local server and runs all browser-related tests
test:nodeStarts Node-related tests
open:examplesStarts a local server to browse the examples locally

© Julian Garnier | MIT License

版本与发布记录

@foundry-vtt-types/animejs 共发布 2 个版本,首次发布于 2026/10/26;过去 12 个月发布了 2 个版本。

版本发布日期距今
4.3.6latest2026/10/2620 天前
0.0.0-stage2026/10/2620 天前

关于 @foundry-vtt-types/animejs 的常见问题

@foundry-vtt-types/animejs 是什么?

JavaScript animation engine

如何安装 @foundry-vtt-types/animejs?

在项目目录运行 npm install @foundry-vtt-types/animejs,或使用 pnpm add / yarn add / bun add。

@foundry-vtt-types/animejs 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@foundry-vtt-types/animejs 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@foundry-vtt-types/animejs 可以商用吗?

@foundry-vtt-types/animejs 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@foundry-vtt-types/animejs 的下载量有多少?

根据 npm 官方下载统计,@foundry-vtt-types/animejs 在 2026/10/16 – 2026/11/14 这 30 天内被下载 1,969 次,日均约 66 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@foundry-vtt-types/animejs 还在维护吗?

最新版本 4.3.6 发布于 2026/10/26(20 天前);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/10/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。