码迷,mamicode.com
首页 > 其他好文 > 详细

animation

时间:2016-11-19 07:50:47      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:async   att   off   data-   ack   lib   set   ted   wow   

https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js

http://mynameismatthieu.com/WOW/dist/wow.min.js

http://mynameismatthieu.com/WOW/css/libs/animate.css

http://mynameismatthieu.com/WOW/

<section class="wow slideInLeft" data-wow-duration="2s" data-wow-delay="5s"></section>
<section class="wow slideInRight" data-wow-offset="10"  data-wow-iteration="10"></section>

new WOW().init();

 

var wow = new WOW({
  boxClass:     ‘wow‘,      // animated element css class (default is wow)
  animateClass: ‘animated‘, // animation css class (default is animated)
  offset:       0,          // distance to the element when triggering the animation (default is 0)
  mobile:       true,       // trigger animations on mobile devices (default is true)
  live:         true,       // act on asynchronously loaded content (default is true)
  callback:     function(box) {
    // the callback is fired every time an animation is started
    // the argument that is passed in is the DOM node being animated
  }
});
wow.init();

.bounce {
animation: bounce 2s 0s;
}
.zoom-out {
animation: zoom-out 2s;
}
.infinite {
animation-iteration-count: infinite;
}
.mode {
animation-fill-mode: forwards;
}
.direction {
animation-direction: alternate;
}

@keyframes zoom-out {
0% {
transform: scale3d(0,0,0);
}
100% {
transform: scale3d(1,1,1)
}
}

 

animation

标签:async   att   off   data-   ack   lib   set   ted   wow   

原文地址:http://www.cnblogs.com/jayruan/p/6079737.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!