v0.5.0
·
243 commits
to master
since this release
Changelog
- 8220ab9...e06cda1 b3d680e: API changed, so that
impress()
function no longer automatically initialize presentation; new method calledinit
was added to API and it should be used to start the presentation.impress:init
event is triggered on root presentation element (#impress
by default) when presentation is initialized - c64d9fb: new CSS classes were added:
impress-disabled
is added tobody
element by the impress.js script and it's changed toimpress-enabled
wheninit()
function is called - 1bbf205 b3d680e: Events added when step is entered and left - custom
impress:stepenter
andimpress:stepleave
events are triggered on step elements and can be handled like any other DOM events (withaddEventListener
) - b0a139e...5fd0f58: Additional past, present and future classes are added to step elements
- 1a21865:
goto()
API method is back! it seems that goto was a future reserved word but isn't anymore, so we can use this short and pretty name instead of camelCassystepTo
- and yes, that means API changed again... - 9d99c03: additionally
goto()
method now supports new types of parameters - b0c5644:
goto()
also accepts second parameter to define the transition duration in ms, for exampleimpress().goto("make-it-quick", 300)
orimpress().goto("now", 0)
UPGRADING FROM PREVIOUS VERSIONS
In current version calling impress()
doesn't automatically initialize the presentation. You need to call init()
function from the API. So in a place were you called impress()
to initialize impress.js simply change this call to impress().init()
.
Version 0.4 changed goto
API method into stepTo
. It turned out that goto
is not a reserved word anymore, so it can be used in JavaScript. That's why version 0.5 brings it back and removes stepTo
.
So if you have been using version 0.4 and have any reference to stepTo
API method make sure to change it to goto
.