1 import { trigger, state, transition, style, animate, keyframes } from '@angular/animations';
//trigger, state, transition, style, animate 这5个都是动画函数 keyframes是关键帧
2 如图 常缓冲规函数语法![](https://img2018.cnblogs.com/blog/1201394/201901/1201394-20190130234830659-462464572.png)
![](https://img2018.cnblogs.com/blog/1201394/201901/1201394-20190130234830659-462464572.png)
3 关键帧 keyframes 语法
![](https://img2018.cnblogs.com/blog/1201394/201901/1201394-20190130235118926-1168793304.png)
4 https://easings.net/zh-cn# 缓冲函数速查
5 http://cubic-bezier.com 自定义贝塞尔
当无法自定义缓冲函数时 可以使用关键帧自己设置