Created
January 5, 2017 20:59
-
-
Save afshinm/aba4c0276d7294098c8d6300ba0cc9de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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