Keyframes/jQuery.Keyframes

Complete callback is missing from version 0.6

Closed this issue · 2 comments

It seems that the complete call back for playKeyframe is missing in the latest branch. This breaks compatibility with previous versions. Is it possible to bring this back?

The callback is still working: http://jsfiddle.net/yc8nahhv/2/

It's called every iteration and at the end. You could implement your own count for now but this does need a more informative fix.

$('.ball').playKeyframe({
    name: 'ball-roll',
    duration: "3s",
    timingFunction: 'ease',
    iterationCount: 1
}, increment);

Notes for me
The callback should have an argument passed whether it is an iteration or complete event.

Thanks for the code sample. I've ported the old calls to match the new ones. Works as advertised :)