Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities. ( Based on jQuery )
1.2.3
You can set tripIndex ( start from 0 ) to specific trip block at start.
Default : 0
You can set which theme to use, now have white and black two themes.
Default : black
You can ask Trip.js go back to top when ended.
Default : false
You can set the basic zIndex for overlay if you want to expose elements.
Default : 99999
You can decide to bind key events for trip navigations or not.
Default : true
You can decide to add small close icon on each trip or not
Default : false
You can enable this option to tell Trip.js skip undefined trips ( Undefined trips mean the trips without content or without sel or can not be selected by jQuery ).
Default : false
every trip will be lived for 1 second (1000 ms) by default
Setting to a -1
will prevent auto-advancing. You must manually call trip.next()
.
Default : 1000
Toggle navigation buttons
Default : false
Label for the previous button.
Default : Back
Label for the next button.
Default : Next
Label for the finish button.
Default : Dismiss
Determines if the user can go backwards. If set to a function it is called and the response is evaluated.
Default : true
Determines if the user can go forward. If set to a function it is called and the response is evaluated.
Default : true
You can set a callback function triggered when Trip.js starts.
Default : $.noop
You can set a callback function triggered when Trip.js ends.
Default : $.noop
You can set a callback function triggered when Trip.js stops.
Default : $.noop
You can set a callback function triggered when Trip.js changes to another step. tripObject is your passed JSON for this current trip, so you can add your customized functions in your object and call the function when Trip.js changes to this step.
Default : $.noop
Which selector is referenced in this step.
Default : no default
What information that you want to show to users.
Default : no default
What position would you prefer for the tripBlock.
Default : n
( You can use e, w, n, s four positions )
You can delay longer / shoter for this step. You can assign delay
in global options to change the default delay.
Setting to a -1
will prevent auto-advancing. You must manually call trip.next()
.
Default : 1000
You can do whatever you want to do after this step passed. BTW, Trip.js will assign the current tripIndex
(start from 0) as the first parameter back to your callback function for later use.
Default : $.noop
You can enable this option to expose your selected element in this trip.
Default : false
Toggle navigation buttons
Default : false
You can decide to add small close icon on each trip or not
Default : false
Label for the previous button.
Default : Back
Label for the next button.
Default : Next
Label for the finish button.
Default : Dismiss
Determines if the user can go forward. If set to a function it is called and the response is evaluated.
Default : true
Determines if the user can go forward. If set to a function it is called and the response is evaluated.
Default : true
Go to next trip
Go back to previous trip
pause / resume
Stop
Call this method to start your trip
Call this method to stop your trip
Call this method to pause your trip (same as trip.resume)
Call this method to continue your trip (same as trip.pause)
jump to next step
jump back to previous step
This plugin is still under development ! If you find any bugs or want me to implement anything, please feel free to open an issue ;)