impress.js v0.5 Release Notes
Release Date: 2016-05-14 // almost 8 years ago-
๐ Changelog
- 0๏ธโฃ 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 callinit()
function from the API. So in a place were you calledimpress()
to initialize impress.js simply change this call toimpress().init()
.๐ Version 0.4 changed
goto
API method intostepTo
. It turned out thatgoto
is not a reserved word anymore, so it can be used in JavaScript. That's why version 0.5 brings it back and removesstepTo
.So if you have been using version 0.4 and have any reference to
stepTo
API method make sure to change it togoto
. - 0๏ธโฃ 8220ab9...e06cda1 b3d680e: API changed, so that