# @ant-design/css-animation 中文文档

规范地址：https://npmcn.com/package/%40ant-design/css-animation/

版本：1\.7\.3
npm 元数据更新时间：2026-04-02T03:57:36.531Z
中文译文更新时间：2026-11-06T06:00:48.952Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40ant-design/css-animation
原文对照：https://npmcn.com/package/%40ant-design/css-animation/?lang=original
项目主页：http://github.com/ant-design/css-animation
源码仓库：https://github.com/ant-design/css-animation

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：21.3 kB，8 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2020-05-07T07:06:50.623Z
- 最新版本发布：2020-07-29T03:39:07.804Z
- 近 30 天下载量：471464（2026-10-06 至 2026-11-04，npm 官方下载统计）
- 已发布版本数：5（近 12 个月 0 个）

## 中文简介

css-动能

## 安装

```sh
npm install @ant-design/css-animation
```

也可以使用：`pnpm add @ant-design/css-animation`、`yarn add @ant-design/css-animation`、`bun add @ant-design/css-animation`

## README

# css-动能

* * *

让 css 动画更简单

[![NPM version](http://img.shields.io/npm/v/css-animation.svg?style=flat-square)](http://npmjs.org/package/css-animation)

## 发展

```
npm install
npm start
```

## 示例

http://localhost:9001/examples/ (英语)

在线实例 : [http://yiminghe.github.io/css-animation/ (中文(简体) )](http://yiminghe.github.io/css-animation/)

## 特性

-   支持 ie8, ie8+, 色素, firefox, safari

## 安装

[![css-animation](https://nodei.co/npm/css-animation.png)](https://npmjs.org/package/css-animation)

## 使用量

```js
var anim = require('css-animation');
anim(el,animationName,function(){});
```

## API 密码

### 空动画( el: DOMMElement, 动画Name: string, callback: Function)

| 名称 | 类型 | 默认 | 说明 |
| --- | --- | --- | --- |
| 尔 | DOMME 元素 |  | 要被动画化的多姆元素 |
| 动画 名称 | 字符串目标 |  | 将添加动画 名称( 如果字符串) 或动画Name. name (如果对象) 作为类到 el, 然后设置 Timeout 0 添加 ${animationName} - 活动( 如果字符串) 或动画Name. 活性( 如果对象) 到 el |
| 回调 | 函数 |  | 当动画引起动画时触发 名称已实现 |

## 测试大小写

```
npm test
npm run chrome-test
```

## 覆盖范围

```
npm run coverage
```

打开覆盖/ dir

## 许可证

css-animation根据麻省理工学院的许可发布.

## 常见问题

### @ant-design/css-animation 是什么？

css-动能

### 如何安装 @ant-design/css-animation？

在项目目录运行 npm install @ant-design/css-animation，或使用 pnpm add / yarn add / bun add。

### @ant-design/css-animation 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/ant-design\_\_css-animation 是否存在。

### @ant-design/css-animation 支持 ESM 还是 CommonJS？

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

### @ant-design/css-animation 可以商用吗？

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

### @ant-design/css-animation 的下载量有多少？

根据 npm 官方下载统计，@ant-design/css-animation 在 2026/10/06 – 2026/11/04 这 30 天内被下载 471,464 次，日均约 15,715 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @ant-design/css-animation 还在维护吗？

最新版本 1\.7\.3 发布于 2020/07/29（6 年前）；至今共发布 5 个版本，其中过去 12 个月发布了 0 个；首次发布于 2020/05/07。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

