A simple script to animate scrolling to anchor links.
Getting started with Smooth Scroll is really easy. View the online tutorial or dig through the index.html
file.
- v2.3 (August 27, 2013)
- Added missing semicolons.
- Defined
animationStop
variable once, add values later. - Activated strict mode.
- Wrapped in IIFE.
- v2.2 (August 17, 2013)
- Now you can set the animation speed with the
data-speed
attribute. (ex.data-speed="400"
)
- Now you can set the animation speed with the
- v2.1 (August 17, 2013)
- Improvement animation function interval for smoother animation.
- Updated to allow for scrolling up the page.
- v2.0 (August 14, 2013)
- Converted to vanilla JavaScript.
- Removed dependency on jQuery.
- v1.1 (June 7, 2013)
- Switched to MIT license.
- v1.1 (May 18, 2013)
- Added jQuery noConflict mode.
- Updated tutorial.
- v1.0 (January 24, 2013)
- Initial release.
Smooth Scroll is free to use under the MIT License.