Skip to content

Instantly share code, notes, and snippets.

@carldanley
Created September 1, 2012 05:13
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 carldanley/3564341 to your computer and use it in GitHub Desktop.
Save carldanley/3564341 to your computer and use it in GitHub Desktop.
tour.js Beta Code
var myTour = tours.createTour( 'my-awesome-tour' );
//feature the menu now
myTour.disableScrolling()
.createBackground( '#000', 0.00 )
.fadeBackground( 0.4, 500 )
.scrollTo( 'body', 1000 )
.wait( 500 )
.showCursor( )
.trackProgress( true )
.beginStep( 'Title of Step Goes Here' )
.focus( 'some css selector here' )
.moveCursorTo( 'any css selector here', 1000, 42, 10 )
.showMessage( '.tour-cursor', 'This is a sample message' )
.wait( 3000 )
.closeMessages()
.clearFocus()
.endStep()
.hideCursor()
.trackProgress( false )
.fadeBackground( 0.00, 1000 )
.removeBackground()
.enableScrolling();
tours.ready( function(){
myTour.startTour();
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment