animation

  语法:

    animation: name duration timing-function delay iteration-count direction;

    animation-name:             规定需要绑定到选择器的 keyframe 名称。。

    animation-duration:         规定完成动画所花费的时间,以秒或毫秒计。

    animation-timing-function:    规定动画的速度曲线。

    animation-delay:          规定在动画开始之前的延迟。

    animation-iteration-count:     规定动画应该播放的次数。(值:n次,infinite无限循环)

    animation-direction:       规定是否应该轮流反向播放动画。

浏览器兼容:

  当然是只兼容支持 CSS3 animate 属性的浏览器,他们分别是:IE10+、Firefox、Chrome、Opera、Safari。

 <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>animation</title>
      /*首先要引入animate.css*/
<link rel="stylesheet" type="text/css" href="css/animate.css"/>
<style type="text/css">
.div1{
width: 100px;
height: 100px;
background: red;
margin: 100px auto;
} /*第三方的第二种用法*/
.div2{
width: 100px;
height: 100px;
background: yellowgreen;
margin: 300px auto;
animation: bounce 3s infinite;
}
</style>
</head>
<body>
<!--第三方动画库的使用
1.名字叫:animate.css
2.封装了很多工作中常用的动画
3.*在使用第三方时候,需要加上animated类名
-->
<!--主要分类:可以参考官网自己设置
bounce:弹性动画类
flash:逐渐消失
pulse:脉冲动画
shake:抖动
-->
<!--第一种使用方法-->
<div class="div1 animated bounceIn infinite "></div> <div class="div2"></div>
</body>
</html>

最新文章

  1. swift与OC之间不得不知道的21点
  2. 什么是UART中的FIFO
  3. js将map转换成数组
  4. Android沉浸式(侵入式)标题栏(状态栏)Status(三)
  5. HTML的结束标签问题
  6. struct ifconf和struct ifreq,获取网线插入状态
  7. RTP, RTCP, RTSP 协议介绍
  8. HDU---4417Super Mario 树状数组 离线操作
  9. freemarker的TemplateExceptionHandler使用
  10. 折扣&amp;折让-看清实质的思考
  11. JS获取浏览器类型和版本号
  12. UEP-下拉
  13. intelj idea中JRebel激活
  14. 禁用 urllib3 的安全请求警告
  15. 我的BO之强类型
  16. Ajax请求二进制流并在页面展示
  17. Spring使用Quartz定时调度Job无法Autowired注入Service的解决方案
  18. 给pdf添加导航目录
  19. configSections必须是根节点下第一个节点
  20. 最大频率栈 Maximum Frequency Stack

热门文章

  1. docker——容器安装tomcat
  2. NodeJs之调试
  3. 如何一步一步用DDD设计一个电商网站(五)—— 停下脚步,重新出发
  4. Jquery 搭配 css 使用,简单有效
  5. 在Ubuntu 16.10安装mysql workbench报未安装软件包 libpng12-0错误
  6. Python标准模块--Unicode
  7. ASP.NET Core 1.0 开发记录
  8. 自定义搭建PHP开发环境
  9. Spark踩坑记——初试
  10. 简单分析JavaScript中的面向对象