guide.js is a jQuery plugin that creates a clickable walkthrough of elements on your webpage
Ensure you have referenced a jQuery library:
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
Download guide.js and guide.css and add the following assets:
<link href="guide.css" rel="stylesheet">
<script src="guide.js"></script>
In you document ready, first attach the guide to the parent element you'd like to mask:
var guide = $("body").guide();
Then attach the steps to the elements to highlight, using jquery selectors:
guide.addStep("#hello", "This step says hello");
guide.addStep("#world", "This step says world");
Then initiate the guide, manually or via a trigger event
guide.start();
Attach the guide to the selector
Parameters:
- options : Object (optional)
Control the gap between the highlighted element and the mask with
margin
Add a step to the guide
Parameters:
- selector : jQuery selector identifying the DOM element to highlight
- introduction : The string to display
- options : Object with optional settings for
margin
andcallback
Start the guide...
- Abstract CSS (currently based on Bootstrap)
- Remove jQuery dependency
- Add keypress support