js代码
<script type="text/javascript" src="lib/jquery.cntl.js"></script> <script type="text/javascript"> $(document).ready(function(e){ $('.cntl').cntl({ revealbefore: 300, anim_class: 'cntl-animate', onreveal: function(e){ console.log(e); } }); }); </script>