公式ドキュメント
https://github.com/tsuyoshiwada/sweet-scroll
インストール
$ npm i sweet-scroll --save
使い方
import SweetScroll from "sweet-scroll";
const scroller = new SweetScroll({ duration: 500 });
scroller.to('#app');
https://github.com/tsuyoshiwada/sweet-scroll
$ npm i sweet-scroll --save
import SweetScroll from "sweet-scroll";
const scroller = new SweetScroll({ duration: 500 });
scroller.to('#app');
このブログは個人的なメモを兼ねたものです。
このブログを参考にした結果起こりうる如何なる事態に対しても、当方では責任を負いかねます。
予めご了承ください。