使用
1.引入文件
<script src="js/jquery.min.js">
</script> <script src="js/jquery.easing.js">
</script> <script src="js/jquery.scrollify.min.js"></script>
2.html
<div class="panel">
</div> <div class="panel">
</div> <div class="panel"></div>
<div class="panel"></div>
3.javascript
$(function() {
$('.panel').css({'height': $(window).height()});
$.scrollify({ section: '.panel' });
});
参数配置
案例参考