$.fn.waypoint.defaults = { context: window, continuous: true, enabled: true, horizontal: false, offset: 0, triggerOnce: false}'bottom-in-view'<script src="/path/to/jquery.min.js"></script><script src="/path/to/waypoints.min.js"></script>$('#example-basic').waypoint(function() { notify('Basic example callback triggered.');});$('#example-offset-percent').waypoint(function() { $("#example-offset-percent').addClass("animated fadeInLeft");}, { offset: '25%' });
官网案例:
固定元素 无限滚动
一起学吧部分文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与一起学吧进行文章共享合作。