anime
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAnime.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. Version 4 introduces a modular architecture with ES modules, improved performance, and enhanced features like draggable interactions, animatable objects, and advanced timeline controls.
The skill is based on Anime.js v4.3.5, generated at 2026-01-29.
Anime.js是一款快速、多功能且轻量的JavaScript动画库,拥有简洁却强大的API。它支持CSS属性、SVG、DOM属性以及JavaScript对象的动画处理。v4版本引入了基于ES modules的模块化架构,提升了性能,并新增了可拖拽交互、可动画对象以及高级时间线控制等增强功能。
本技能基于Anime.js v4.3.5,生成于2026-01-29。
Core References
核心参考
| Topic | Description | Reference |
|---|---|---|
| Animation | Basic animation function, target selection, property animation | core-animation |
| Timeline | Sequential and parallel animations, labels, position control | core-timeline |
| Stagger | Staggered animations for multiple targets | core-stagger |
| Animation Parameters | Duration, delay, easing, loop, callbacks | core-parameters |
| Timer | createTimer, Timer—periodic callbacks, frameRate, playback | core-timer |
| 主题 | 描述 | 参考 |
|---|---|---|
| 动画 | 基础动画函数、目标选择、属性动画 | core-animation |
| 时间线 | 顺序与并行动画、标签、位置控制 | core-timeline |
| 交错动画 | 多目标的交错动画 | core-stagger |
| 动画参数 | 时长、延迟、缓动、循环、回调函数 | core-parameters |
| 计时器 | createTimer、Timer——周期性回调、帧率、播放控制 | core-timer |
Features
功能特性
Draggable
可拖拽
| Topic | Description | Reference |
|---|---|---|
| Draggable | Create draggable elements with physics and constraints | features-draggable |
| Draggable Configuration | Container bounds, snap, friction, velocity | features-draggable-config |
| 主题 | 描述 | 参考 |
|---|---|---|
| 可拖拽 | 创建带有物理效果与约束的可拖拽元素 | features-draggable |
| 可拖拽配置 | 容器边界、吸附、摩擦力、速度 | features-draggable-config |
Animatable
可动画对象
| Topic | Description | Reference |
|---|---|---|
| Animatable | Create animatable objects for custom animations | features-animatable |
| 主题 | 描述 | 参考 |
|---|---|---|
| 可动画对象 | 创建用于自定义动画的可动画对象 | features-animatable |
Scope & Scroll
视域与滚动
| Topic | Description | Reference |
|---|---|---|
| Scope | Scroll-based animations and viewport detection | features-scope |
| Scroll (onScroll) | Scroll-linked animations, progress, link(timeline) | features-scroll |
| 主题 | 描述 | 参考 |
|---|---|---|
| 视域 | 基于滚动的动画与视口检测 | features-scope |
| 滚动(onScroll) | 滚动联动动画、进度、关联时间线 | features-scroll |
Layout
布局
| Topic | Description | Reference |
|---|---|---|
| Layout (AutoLayout) | FLIP-style layout animations, accordion, enter/leave | features-layout |
| 主题 | 描述 | 参考 |
|---|---|---|
| 布局(AutoLayout) | FLIP风格的布局动画、手风琴效果、进入/离开动画 | features-layout |
SVG
SVG
| Topic | Description | Reference |
|---|---|---|
| SVG Morphing | Morph SVG paths and shapes | features-svg-morph |
| SVG Drawing | Animate SVG path drawing | features-svg-draw |
| SVG Motion Path | Animate elements along an SVG path | features-svg-motion-path |
| 主题 | 描述 | 参考 |
|---|---|---|
| SVG变形 | 对SVG路径与形状进行变形动画 | features-svg-morph |
| SVG绘制 | 对SVG路径绘制过程进行动画 | features-svg-draw |
| SVG运动路径 | 沿SVG路径对元素进行动画 | features-svg-motion-path |
Text
文本
| Topic | Description | Reference |
|---|---|---|
| Text Splitting | Split text into words, lines, and characters | features-text-split |
| Text Animation | Animate text content and properties | features-text-animation |
| 主题 | 描述 | 参考 |
|---|---|---|
| 文本拆分 | 将文本拆分为单词、行和字符 | features-text-split |
| 文本动画 | 对文本内容与属性进行动画 | features-text-animation |
Easings
缓动函数
| Topic | Description | Reference |
|---|---|---|
| Easing Functions | Built-in easing functions (in, out, inOut) | easings-functions |
| Custom Easings | Cubic bezier, spring, steps, linear easings | easings-custom |
| 主题 | 描述 | 参考 |
|---|---|---|
| 内置缓动函数 | 内置缓动函数(in、out、inOut) | easings-functions |
| 自定义缓动 | 三次贝塞尔、弹簧、阶梯、线性缓动 | easings-custom |
Utilities
工具函数
| Topic | Description | Reference |
|---|---|---|
| Utils | DOM utilities, value helpers, math functions | utils-helpers |
| 主题 | 描述 | 参考 |
|---|---|---|
| 工具函数 | DOM工具、值辅助函数、数学函数 | utils-helpers |
Advanced
高级特性
| Topic | Description | Reference |
|---|---|---|
| Composition | Replace, none, blend (additive) for overlapping animations | advanced-composition |
| Engine | Global engine—pause, resume, speed, timeUnit, precision | advanced-engine |
| WAAPI | Web Animations API—waapi.animate for native animations | advanced-waapi |
| Scope (createScope) | Execution context, defaults, methods, keepTime, revert | advanced-scope |
| 主题 | 描述 | 参考 |
|---|---|---|
| 动画合成 | 重叠动画的替换、无合成、混合(叠加)模式 | advanced-composition |
| 引擎 | 全局引擎——暂停、恢复、速度、时间单位、精度 | advanced-engine |
| WAAPI | Web Animations API——使用waapi.animate实现原生动画 | advanced-waapi |
| 视域(createScope) | 执行上下文、默认值、方法、保持时间、恢复 | advanced-scope |