jQuery
【jQuery】スクロールをアニメーション化するためのjQueryプラグインAnimateScroll
January 1, 2018

AnimateScrollはスクロールをアニメーション化するためのシンプルなjQueryプラグイン。
<html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="animatescroll.js"> </head> <body> <div id="section-1">This is the element where you want to scroll to<div> /* * You may call the function like this * (but better attach an event listener) */ <a onclick="$('[jquery selector]').animatescroll([options]);">Go to Element</a> </body> </html>
$('[jquery selector]').animatescroll({ <optionName> : <optionValue> });
MIT