Skip to content

Instantly share code, notes, and snippets.

@afshinm
Created January 5, 2017 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afshinm/aba4c0276d7294098c8d6300ba0cc9de to your computer and use it in GitHub Desktop.
Save afshinm/aba4c0276d7294098c8d6300ba0cc9de to your computer and use it in GitHub Desktop.
var intro = introJs();
intro.setOptions({
steps: [
{
intro: "Hello world!"
},
{
element: document.querySelector('#step1'),
intro: "This is a tooltip."
},
{
element: document.querySelectorAll('#step2')[0],
intro: "Ok, wasn't that fun?",
position: 'right'
},
{
element: '#step3',
intro: 'More features, more fun.',
position: 'left'
},
{
element: '#step4',
intro: "Another step.",
position: 'bottom'
},
{
element: '#step5',
intro: 'Get it, use it.'
}
]
});
intro.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment