"goto now accepts duration parameter"

This commit is contained in:
Bartek Szopka
2012-03-14 22:53:17 +00:00
parent 9d99c03392
commit b0c5644b47
3 changed files with 21 additions and 14 deletions

View File

@@ -340,8 +340,9 @@ if ("ontouchstart" in document.documentElement) {
`api.init()` - initializes the presentation,
`api.next()` - moves to next step of the presentation,
`api.prev()` - moves to previous step of the presentation,
`api.goto( idx | id | element )` - moves the presentation to the step given by its index number,
id or the DOM element.
`api.goto( idx | id | element, [duration] )` - moves the presentation to the step given by its index number
id or the DOM element; second parameter can be used to define duration of the transition in ms,
but it's optional - if not provided default transition duration for the presentation will be used.
You can also simply call `impress()` again to get the API, so `impress().next()` is also allowed.
Don't worry, it wont initialize the presentation again.