js代码
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script> <script src="dist/scrolla.jquery.min.js"></script> <script> $('.animate').scrolla({ mobile: false, once: false }); $('#button-show-window').click(function() { var template = $('#modal-template').html(); $('body').append(template); $('.animate').scrolla('bind'); $('section.modal .modal-close').click(function() { $(this).closest('section.modal').remove(); }); return false; }); </script>
在线预览
资源均来自第三方,谨慎下载,前往第三方网站下载