viniciusalmeida / jQuery.semanticScrollTo

ScrollTo plugin that respect the semantic of anchors on link tag

Home Page:http://viniciusalmeida.github.io/jQuery.semanticScrollTo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://viniciusalmeida.github.io/jQuery.semanticScrollTo


Languages

Language:JavaScript 70.0%Language:CSS 30.0%