jQuery scrollTips
This small jQuery plugin creates tooltips that helps navigation within the same page, using a specific HTML markup.
Use
- Include this plugin CSS styles:
<link rel="stylesheet" href="jquery.scrollTips.min.css">
- Include jQuery and this plugin:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="jquery.scrollTips.min.js"></script>
- Start!:
$("wrapperSelector").scrollTips();
Options
container: $("section"), // selector for each section to clone and create scrollTips title: $("h1"), // selector for title to clone and create scrollTip names exclude: $("#intro"), // selector that will be excluded from scroolTip smoothscroll: 500, // time (ms) to navigate between sections onCreate: function(){}, // callback init onSection: function(){} // callback each section changes
Disclaimer
Based on the awesome work of phoboslab
License
MIT License free to use and modify but not to resell.