Skip to content

viniciusalmeida/jQuery.semanticScrollTo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.semanticScrollTo

Many plugins of this type forget the semantic of anchors, breaking their functionality.

semanticScrollTo respect the semantic of anchors on link tag.

See a demo

Example

Markup example:

<ul id="menu">
  <li><a href="#">Top</a></li>
  <li><a href="#about">About</a></li>
  <li><a href="#links">Links</a></li>
</ul>

<h2 id="about">Lorem</h2>
<h2 id="links">Ipsum</h2>

Starting the plugin:

$(document).semanticScrollTo();
// or
$('#menu').semanticScrollTo();

See the example page markup

Options

Attribute Type Description
animationSpeed integer Scroll animation speed on milliseconds

Made by @vimoding

About

ScrollTo plugin that respect the semantic of anchors on link tag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published