.c-white-0 {color: #fff;}
.c-black-0 {color: #000;}
.c-gray-0 {color: #f8f9fa;}
.c-gray-9 {color: #212529;}
.c-orange-0 {color: #fff4e6;}
.c-orange-9 {color: #d9480f;}
.bgc-white-0 {background-color: #fff;}
.bgc-black-0 {background-color: #000;}
.bgc-gray-0 {background-color: #f8f9fa;}
.bgc-gray-9 {background-color: #212529;}
.bgc-orange-0 {background-color: #fff4e6;}
.bgc-orange-9 {background-color: #d9480f;}
对于CSS动画,Github上已经有很多优秀的项目了。例如: Animate.css、Hover.css...
如果想学习3D动画,可以去看看张鑫旭大神这篇文章: 好吧,CSS3 3D transform变换,不过如此! ,前方高能,注意安全。
分享一些CSS手册与工具:CSS 手册、Clip-path、CSS Filter、Cubic-bezier、CSS 3D Tester
transform 2D
旋转:transform:rotate() deg
移动:transform:translate[X,Y](x,y) px
缩放:transform:scale[X,Y](x,y) number
扭曲:transform:skew[X,Y](x,y) deg
transform 3D
旋转:transform:rotate3d(x,y,z,deg)
旋转:transform:rotate[X,Y,Z]() deg
移动:transform:translate3d(x,y,z) px
移动:transform:translateZ() px
缩放:transform:scale3d[X,Y](x,y) number
缩放:transform:scaleZ() number
transition-property 过度的CSS属性
transition-duration 过度动画的执行时间
transition-timing-function 过度动画的播放类型
transition-delay 过度动画延迟时间
animation-name 动画名字
animation-duration 动画执行时间
animation-timing-function 动画的播放类型
animation-delay 动画延迟执行时间
animation-iteration-count 动画循环次数
animation-direction 动画的播放方向
animation-play-state 动画运动与暂停
animation-fill-mode 动画播放前后的状态
@keyframes {0%{} ... 100%{}}创建动画过程