@ant-design/css-animation

中文文档
1.7.3发布于 2020/07/29MITESM + CJS零依赖近 30 天下载 47.1万

css-animation

原始使用文档
文档目录10 节
  1. Development
  2. Example
  3. Feature
  4. install
  5. Usage
  6. API
  7. void anim(el:DOMElement, animationName:String, callback:Fun…
  8. Test Case
  9. Coverage
  10. License

css-animation


make css animation easier

NPM version

Development

npm install
npm start

Example

http://localhost:9001/examples/

online example: http://yiminghe.github.io/css-animation/

Feature

  • support ie8,ie8+,chrome,firefox,safari

install

css-animation

Usage

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

API

void anim(el:DOMElement, animationName:String, callback:Function)

name type default description
el DOMElement dom element to be animated
animationName String|Object will add animationName (if string) or animationName.name (if object) as class to el, then setTimeout 0 to add ${animationName}-active (if string) or animationName.active (if object) to el
callback Function triggered when anim caused by animationName is done

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

css-animation is released under the MIT license.

版本与发布记录

@ant-design/css-animation 共发布 5 个版本,首次发布于 2020/05/07;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.7.3latest2020/07/296 年前
1.7.22020/05/076 年前
1.7.12020/05/076 年前
1.7.02020/05/076 年前
1.6.02020/05/076 年前

关于 @ant-design/css-animation 的常见问题

@ant-design/css-animation 是什么?

css-animation

如何安装 @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 和提交记录判断。