Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

CodeWithGrid/simple-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

It took less time to write this function than it did to find one that wasn't more complex than I felt necessary. Avoid bouncy animation if you respect your users. 

Basic use:

1. Make sure you're including jQuery

2. Include the simplefix.js script
<script type="text/javascript" src="jquery.simplefix.js"></script>	

3. Attach the function to whatever you want to keep in place
<script type="text/javascript">
	$(document).ready(function() {
		$("#sticker").simpleFix();	
	});
</script>

About

Lightweight sticky scrolling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published