使用css3 animation制作的网站特效库。
$ npm install animation-library --save
$ npm update animation-library
注意如果更新指令不起作用,请执行以下办法
$ npm install -g npm-check-updates
$ ncu 或 $ npm-check-updates
$ ncu -u
$ npm update animation-library@latest
npm uninstall animation-library
@import 'node_modules/animation-library/css/animation-library.css';
animation-library配置了很多常用的网站动画特效,里面的特效使用的是CSS3中的transtion(过渡) 和animation(动画)属性。
比如,淡入淡出效果的使用案例如下:
fade