Skip to content

n8carrier/PlusAnchor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlusAnchor jQuery Plugin

A simple jQuery plugin that scrolls to anchor links instead of instantaneously jumping to them.

Features

  • Works with with ID jumping and anchor jumping

Usage instructions

Place the following in your <head> section.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.plusanchor.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	$('body').plusAnchor({
		easing: 'easeInOutExpo',
		speed: 	1000
	});

});
</script>

Available options

$('body').plusAnchor({
    easing: 'swing', 	// The easing method, defaults are 'swing' and 'linear'. Anything else requires the easing.js plugin
    speed:  1000 		// The amount of time, in milisecons, it takes to complete a transition
});

Changelog

Version 1

1.0.1

  • Changed file names and file extentions for simplicity
  • Added example HTML and CSS files to demonstrate what the script can do

1.0

  • First official version

About

A jQuery plugin enables scrolling to anchor links instead of jumping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published