Skip to content

`openingDone` event #65

pisi opened this Issue Oct 21, 2011 · 1 comment

1 participant

pisi commented Oct 21, 2011

Comment from Ben Palmer extracted from #27

Would be great to add a callback for when the animation ends. I have tried hooking onto the 'opening' or 'opening_tick' method but neither worked. So a callback like:

    onEntryEnd: function(){
        /* Do something */
@pisi pisi was assigned Oct 21, 2011
@pisi pisi referenced this issue Oct 21, 2011

`velocity` option #27

pisi commented Oct 21, 2011

OK, I will add a new event openingDone, which will be triggered at the precise moment the opening_tick gets unbound. It won't be a .reel()'s option, but rather a standard event triggered on the instance.

$('#reel').bind('openingDone', function(){
    /* Do something */
@pisi pisi closed this Oct 21, 2011
@pisi pisi reopened this Oct 21, 2011
@pisi pisi added a commit that closed this issue Oct 31, 2011
@pisi Instead of calling private `delay_play` directly when the opening ani…
…mation has finished, a new event `"openingDone"` is triggered on the instance. The `delay_play` then becomes a callback for the event bound one level up the DOM to the overlay node (instance's parent). This way it is cancellable on the instance either by using event's `.stopPropagation()` or by returning false from the handler. Fixes #65
@pisi pisi closed this in 36c8bdb Oct 31, 2011
@pisi pisi added a commit that referenced this issue Dec 30, 2011
@pisi 1.2 ALPHA is out!
Just missing annotations examples - the'll be in the beta.


* Non-`wheelable` Reels now allow scrolling of the page when wheeling above the Reel instance.
* New option `attr` allows to set custom attributes of the IMG tag (useful for re-using DOM nodes).
* Instances being re-instantiated now perform automatic teardown (GH-62).
* Proper image preload events unbinding on teardown (GH-64).
* Option `scrollable` can disable page scrolling (if needed) on touch devices.
* New event `"openingDone"` now announces the end of opening animation (GH-65).
* Internal event `slide` renamed to `pan` (GH-51).
* Actual frame number is manifested with a wrapper class name, e.g. `frame-8` (GH-69).
* Improved order of preloaded images gradually increasing fidelity of the image, thus the name `"fidelity"` and this mode is now default. The former order is designated `"linear". Preloading mode is chosen by new `preload` option accepting a mode name. (GH-10).
* Deprecated options `hotspot`, `tooltip` and `reversed` have been removed.
* Bare click on left/right half of the image steps the Reel one frame forward/back. Set `steppable` to false to disable. Comes with `"stepLeft"` and `"stepRight"` events (GH-20).
* Custom text/graphics can augment the frames using the brand new `annotations` feature (GH-36).
* New complementary `.unreel()` function to revert effects of `.reel()` on the DOM.
* Control event `play` now accepts optional `speed` parameter.
* Mouse cursor is now customizable with the new `cursor` option. The new failsafe cursor is now `"move"`.
@pisi pisi added a commit that referenced this issue Jul 16, 2012
@pisi Reel 1.2

Lovely new features:
* in-picture annotations
* new image preloading method
* frame by frame stepping
* new data change model
* full documentation
* jQuery 1.5+

New options:
* `annotations`, `attr`, `cursor`, `steppable`, improved `images`

New events:
* `stepLeft`, `stepRight`, `openingDone`, improved `play`

New methods:
* `.unreel()`, improved `.reel()`

Includes fixes for issues #10, #20, #36, #51, #62, #64, #65, #69, #103, #110, #111, #113, #115, #117, #122, #124, #125, #126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.