jmpressjs / jmpress.js

A jQuery plugin to build a website on the infinite canvas
http://jmpressjs.github.com/jmpress.js
1.5k stars 237 forks source link

Post-transition event #89

Closed neochief closed 11 years ago

neochief commented 11 years ago

Hi!

Is there some event which fires after step was completely transitioned? I'm trying to de-initialize some stuff on passed steps (using .on('leaveStep') ), but it fires right after transition, so for short period of time during transition, user can see stuff behind the curtains, which is bad.

Thank you for great work!

shama commented 11 years ago

On end CSS transitions are not yet implemented into jmpress.js. They are sort of new, here is the w3 draft. afaik, the event is different for each browser and only works in the newer versions: webkit webkitTransitionEnd, firefox transitionend, Opera oTransitionEnd, and IE transitionend. Here is a bit more info.

sokra commented 11 years ago

There is also a "idle" callback, which is fired when the transition is finished on a slide.

neochief commented 11 years ago

Thanks, guys.