animate.css

官网:https://daneden.github.io/animate.css/

包括:attention seekers:关注者

bouncing entrances:跳跃进入

Bouncing Exits:

Fading Entrances

Fading Exits:渐变退出

Flippers: 脚蹼

Lightspeed:光速

Rotating Entrances:

Rotating Exits:旋转退出

Sliding Entrances

Sliding Exits:滑动退出

Zoom Entrances

Zoom Exits:变焦退出

Specials

wow.js

Reveal Animations When You Scroll. Very Animate.cssFriend :-)  
Easily customize animation settings: style, delay, length, offset, iterations...

官网:http://mynameismatthieu.com/WOW/

css3动画

css3 @keyframes规则 ie10+

@keyframes myfirst
{
from {background: red;}
to {background: yellow;}
} @keyframes myfirst
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} @-moz-keyframes myfirst /* Firefox */
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} @-webkit-keyframes myfirst /* Safari 和 Chrome */
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} @-o-keyframes myfirst /* Opera */
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} div
{
animation: myfirst 5s linear 2s infinite alternate;
/* Firefox: */
-moz-animation: myfirst 5s linear 2s infinite alternate;
/* Safari 和 Chrome: */
-webkit-animation: myfirst 5s linear 2s infinite alternate;
/* Opera: */
-o-animation: myfirst 5s linear 2s infinite alternate;
}

对比转换 transform(静态)

转换是使元素改变形状、尺寸和位置的一种效果

  • translate():通过 translate() 方法,元素从其当前位置移动,根据给定的 left(x 坐标) 和 top(y 坐标) 位置参数       transform: translate(50px,100px);
  • rotate():通过 rotate() 方法,元素顺时针旋转给定的角度。允许负值,元素将逆时针旋转。   transform: rotate(30deg);
  • scale():通过 scale() 方法,元素的尺寸会增加或减少,根据给定的宽度(X 轴)和高度(Y 轴)参数:  transform: scale(2,4);
  • skew():通过 skew() 方法,元素翻转给定的角度,根据给定的水平线(X 轴)和垂直线(Y 轴)参数: transform: skew(30deg,20deg);
  • matrix():matrix() 方法把所有 2D 转换方法组合在一起。matrix() 方法需要六个参数,包含数学函数,允许您:旋转、缩放、移动以及倾斜元素。 transform:matrix(0.866,0.5,-0.5,0.866,0,0);

对比过渡 transition

transition: width 1s linear 2s;

最新文章

  1. hibernate---注释 ----(购物:人顾客售货员boss)
  2. 转载:冷门js技巧
  3. LINUX系统编程 由REDIS的持久化机制联想到的子进程退出的相关问题
  4. ACM2050前传
  5. Part 59 to 60 Difference between Convert ToString and ToString,String and StringBuilder
  6. C#数据上传方法
  7. php错误处理和异常处理
  8. [STL] day 1~2 Problem Set
  9. 乡下人重拾MVC——@RenderBody @RenderSection @Html.Partial @Html.Action @Html.RenderPartial @Html.RenderAction
  10. JS 作用域(执行环境)与作用链---JS 学习笔记(二)
  11. springcloud使用zookeeper作为config的配置中心
  12. python实现归并排序算法
  13. [Aaronyang] 写给自己的WPF4.5 笔记9[复杂数据处理三步曲,数据展示ListView泪奔2/3]
  14. Unknown parameter datatype UNKNOW send from server.
  15. 用rem来做响应式开发(转)
  16. MySQL root密码忘记后更优雅的解决方法
  17. Python机器学习——线性模型
  18. bzoj 4568: [Scoi2016]幸运数字
  19. iOS-- UIimageView详解
  20. Python在ubuntu下常用开发包名称

热门文章

  1. Hadoop1.0 与Hadoop2.0
  2. 嵌入式C语言自我修养 01:Linux 内核中的GNU C语言语法扩展
  3. python 爬虫(爬取网页的img并下载)
  4. Python学习知识库
  5. 【面试必问】python实例方法、类方法@classmethod、静态方法@staticmethod和属性方法@property区别
  6. IO 转换流
  7. 「日常训练」Known Notation(ZOJ-3829)
  8. Django自定义管理表单
  9. TPO-14 C2 Prepare for a career in journalism
  10. 教你一招,提升你Python代码的可读性,小技巧