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 called init 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 to body element by the impress.js script and it's changed to impress-enabled when init() function is called
    • 1bbf205 b3d680e: Events added when step is entered and left - custom impress:stepenter and impress:stepleave events are triggered on step elements and can be handled like any other DOM events (with addEventListener)
    • 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 camelCassy stepTo - 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 example impress().goto("make-it-quick", 300) or impress().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.