zoukankan      html  css  js  c++  java
  • Animate.css介绍

    Animate.css简介

    animate.css 动画库,预设了抖动(shake)、闪烁(flash)、弹跳(bounce)、翻转(flip)、旋转(rotateIn/rotateOut)、淡入淡出(fadeIn/fadeOut)等多达 60 多种动画效果,几乎包含了所有常见的动画效果。

    Animate.css下载

    百度云盘下载链接

    Animate.css动画演示

    演示地址

    Animate模板

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Document</title>
      <!-- 引用animate文件 -->
      <link rel="stylesheet" href="css/animate.min.css"/>
    </head>
    <body>
    
    </body>
    </html>
    • 添加一个动画
    <!-- animated类似与全局变量,定义动画持续时间 -->
    <!-- bounce具体动画的名称 -->
    <div class="animated bounce">
      Animate.css
    </div>
    • 定义播放次数
    <!-- infinite定义动画无限播放 -->
    <div class="animated bounce infinite">
      Animate.css
    </div>
    • 通过JavaScript或jQuery添加Animate动画
    <div>
      Animate.css
    </div>
    <!-- 在线引用jQuery文件 -->
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <!-- 通过jQuery添加animate动画 -->
    <script>
       $('div').addClass('animated bounce');
    </script>
    •  添加定时器,5秒后删除animate无限播放效果
    <div>
      Animate.css
    </div>
    <!-- 在线引用jQuery文件 -->
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <!-- 通过JavaScript或jQuery添加animate动画 -->
    <script>
       $('div').addClass('animated bounce infinite');
       setTimeout(function(){
         $("div").removeClass("infinite");
       },5000)
    </script>
  • 相关阅读:
    Singleton patterns 单件(创建型模式)
    JS的运算问题……
    Java 新手学习日记一
    pycharm远程调试配置
    MATLAB2010安装方法
    人生三境界
    SAS数据步与过程步,数据步语句
    Google Chrome浏览器调试功能介绍
    认识Java标识符
    java多态和继承
  • 原文地址:https://www.cnblogs.com/xiukang/p/8979276.html
Copyright © 2011-2022 走看看