wickedCSS3动画库演示特效



128 510 171



特效描述:wickedCSS3 动画库演示特效,一款基于wickedCSS3动画库制作24种不同的动画效果演示,WOW.JS结合使用效果更佳。

代码结构

1. 引入CSS

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css">
<link rel="stylesheet" href="dist/wickedcss.css"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="css/materialize.css"/>

2. 引入JS

<script src="js/modernizr-2.8.3.min.js"></script>
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="js/materialize.js" type="text/javascript"></script>
<script src="js/wow.min.js" type="text/javascript"></script>

3. HTML代码

	<div class="container">
		<!-- Animation image -->
          <!-- <div class="section"></div>
          <div class="section"></div>-->
          <div class="section"></div>
          <div class="section"></div> 
          <div class="container center-align">
            <div class="col s12">
                <div id="animationelement" class="floater"></div>
            </div>
          </div>
          <div class="section"></div>
          <div class="section"></div>
          <div class="container center-align">
             <div class="row">
              <div class="col s12 m3 l2">
                  <a href="#" id="floaterButton" class="waves-effect waves-light btn-large white blue-text" >floater</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="barrelRollButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'barrelRoll', 'clicked'])">barrelRoll</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="rollerRightButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'rollerRight', 'clicked'])">rollerRight</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="rollerLeftButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'rollerLeft', 'clicked'])">rollerLeft</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="heartbeatButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'heartbeat', 'clicked'])">heartbeat</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="pulseButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'pulse', 'clicked'])">pulse</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="rotationButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'rotation', 'clicked'])">rotation</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="sideToSideButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'sideToSide', 'clicked'])">sideToSide</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="zoomerButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'zoomer', 'clicked'])">zoomer</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="zoomerOutButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'zoomerOut', 'clicked'])">zoomerOut</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="spinnerButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'spinner', 'clicked'])">spinner</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="wiggleButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'wiggle', 'clicked'])">wiggle</a>
                  <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                  <a href="#" id="shakeButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'shake', 'clicked'])">shake</a>
                  <div class="section"></div>
              </div>
               <div class="col s12 m3 l2">
                  <a href="#" id="poundButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'pound', 'clicked'])">pound</a>
                  <div class="section"></div>
              </div>
               <div class="col s12 m3 l2">
                <a href="#" id="slideUpButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'slideUp', 'clicked'])">slideUp</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="slideDownButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'slideDown', 'clicked'])">slideDown</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="slideRightButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'slideRight', 'clicked'])">slideRight</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="slideLeftButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'slideLeft', 'clicked'])">slideLeft</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="fadeInButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'fadeIn', 'clicked'])">fadeIn</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="fadeOutButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'fadeOut', 'clicked'])">fadeOut</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="rotateInRightButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'rotateInRight', 'clicked'])">rotateInRight</a>
                <div class="section"></div>
              </div>
              <div class="col s12 m3 l2">
                <a href="#" id="rotateInLeftButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'rotateInLeft', 'clicked'])">rotateInLeft</a>
                <div class="section"></div>
              </div>
               <div class="col s12 m3 l2">
                <a href="#" id="rotateInButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'rotateIn', 'clicked'])">rotateIn</a>
                <div class="section"></div>
              </div>
               <div class="col s12 m3 l2">
                <a href="#" id="bounceInButton" class="waves-effect waves-light btn-large white blue-text" onClick="_gaq.push(['_trackEvent', 'bounceIn', 'clicked'])">bounceIn</a>
                <div class="section"></div>
              </div>
            </div>
          </div>
	</div>
	<script type="text/javascript">
	 new WOW().init();
	</script>
    <script type="text/javascript">
    /*
    BUTTON FUNCTIONS
    */
    $('#rotationButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("rotation");
        });
    });
    $('#sideToSideButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("sideToSide");
        });
    });
    $('#zoomerButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("zoomer");
        });
    });
     $('#zoomerOutButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("zoomerOut");
        });
    });
    $('#spinnerButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("spinner");
        });
    });
     $('#pulseButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("pulse");
        });
    });
     $('#shakeButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("shake");
        });
    });
     $('#barrelRollButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("barrelRoll");
        });
    });
      $('#floaterButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("floater");
        });
    });
      $('#wiggleButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("wiggle");
        });
    });
      $('#poundButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("pound");
        });
    });
    $('#rollerRightButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("rollerRight");
        });
    });
    $('#rollerLeftButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("rollerLeft");
        });
    });
    $('#heartbeatButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("heartbeat");
        });
    });
    $('#fadeInButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("fadeIn");
        });
    });
    $('#fadeOutButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("fadeOut");
        });
    });
    $('#slideUpButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass(); 
          $('#animationelement').addClass("slideUp");
        });
    });
    $('#slideDownButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("slideDown");
        });
    }); 
    $('#slideLeftButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("slideLeft");
        });
    });   
    $('#slideRightButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("slideRight");
        });
    }); 
    $('#rotateInRightButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("rotateInRight");
        });
    });
    $('#rotateInLeftButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("rotateInLeft");
        });
    });
     $('#rotateInButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("rotateIn");
        });
    });
     $('#bounceInButton').click(function() {
      $(this).each(function(){
          $('#animationelement').removeClass();       
          $('#animationelement').addClass("bounceIn");
        });
    });      
</script>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 滚动导航菜单 滑动导航菜单 图片翻转旋转 图片淡出淡进 html5动画导航菜单 二维码 滚动切换 滑动选项卡切换 文字翻转旋转 文字淡出淡进 html5图片动画 地图 图片滚动 图片滑动 旋转木马 html5文字动画 计算器 文字滚动 文字滑动 计时器 html5表情动画 滑动手风琴 桌面 图片文字滚动 html5线条动画 滑动星星打分 跳转 全屏滚动 步骤 html5飘落动画 页面滚动 键盘 html5光标动画 签到 分享 html5悬停动画 点赞 投票 雪花 打印 答题 震动 图表 鼠标滑过 抽奖 表情 qq空间 头像截图 星星打分评分 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 滚动流动 滑动滑过 加载动画 自动滚动图片轮播 滑动星星打分 html5弹窗动画 转动旋转翻转 渐隐切换 淡出淡入淡进 html5动画h5动画 其他更多 html5按钮动画

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到