久久资源网

xScroll.js页面元素滚动插件

xScroll.js页面元素滚动插件

2019-03-28 20:37:24 其它特效

售价:5.00积分 会员免费

特别声明:资源售价只是赞助,不代表代码或者素材本身点数。收取费用仅维持本站的日常运营所需!

xScroll.js页面元素滚动插件

xScroll.js 一款轻量级的元素滚动插件,基于css3动画库,默认设置元素动画类型,通过页面滚动元素动画演示代码。

 

使用方法

1、head引入css文件

<link rel="stylesheet" href="css/animate.min.css">

2、head引入js文件

<script src="js/jquery.min.js"></script>

3、body引入HTML代码

<div class="xScroll(可以自定义类名)" data-animation="fadeInUp(animate的动画名称)"><div>

<!--调用插件-->
<script src="js/isScroll.js"></script>

<script> $(".xScroll(自己设定的类名)").xScroll(); <script>

 

参考动画名称:data-animation="fadeIn",data-animation="fadeInLeft",data-animation="fadeInUp",data-animation="fadeInRight",data-animation="rubberBand"。想了解更多可以查看animate.min.css动画库。

 

资源出处:https://www.moyublog.com/codes/2038.html

关注微信