jQuery
【jQuery】シンプルで軽量のトップスクロールプラグインjQuery toTop()
July 11, 2017

jQuery toTop()はスムーズにトップにスクロールするためのシンプルな軽量のプラグイン。
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> <script src="jquery.toTop.min.js"></script>
<a class="to-top">Top ↑</a>
//basic activation - with all default values $('.to-top').toTop();
autohide | default: true |
---|---|
offset | default: 420 |
speed | default: 500 |
position | default: true |
right | default: 15 |
bottom | default: 30 |
example
$('.to-top').toTop({ //options with default values autohide: true, offset: 420, speed: 500, position: true, right: 15, bottom: 30 });
MIT