Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1013 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 1013 Bytes

Easing-SmoothScroll-js

Modified SmoothScroll.js with easing functions and more usability.
 SmoothScroll.jsとイージング性能とユーザビリティを強化しました。

How to use

 JUST write script tag in your HTML and Inner href can scroll to specified position acting on easing curve function in this script.In Addition, you can use document.smoothScroll(idName|elementObject); You can custamize curve function and duration.

 Scriptタグを書くだけのページ内リンクがイージング関数に従ってスクロールするようになります。そして、document.smoothScroll(idName|elementObject);の様に要素のID名、要素自体を引数に指定することで目的の位置までスクロール可能です。また、スクロール時間、イージング関数をカスタマイズできます。

Original code

by 2007-2011 Kazuma Nishihata http://www.to-r.net http://blog.webcreativepark.net/sample/js/53/smoothScroll.js