LogoMark.png

jQuery/SmoothScroll

Smooth-Scroll

ページ内リンクを滑らかに移動するjQueryのプラグイン

公式サイト

http://plugins.jquery.com/smooth-scroll/

準備

HTML

ヘッダーで、jQuery とプラグインの2つを読みます。

<script src="jquery-xxxxxx.js"></script>
<script src="jquery.smooth-scroll.js"></script>


JavaScript

以下のコードだけで、リンク移動がスムーズになります。

$('a').smoothScroll();


以上



PAGES

GUIDE

DATA

Last-modified: 2019-07-05 (金) 20:51:25