Skip to content

Najki/jquery.smoothScrollTo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.smoothScrollTo

Usage example.

HTML:

<a href="#foobar" class="anchor">Lorem ipsum</a>
<!-- ... -->
<div id="foobar">target div</div>

JS:

$('a.anchor').smoothScrollTo();

Demo: http://najki.github.io/jquery.smoothScrollTo/demo.html

Options:

  • scrollTime - animation time in miliseconds
  • onBefore - called before animation starts (only if target is found)
  • onAfter - called after animation ends (only if target is found)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published