Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reach event rotates one frame backwards before rotating correctly #328

Open
14renus opened this issue Sep 12, 2017 · 0 comments
Open

Reach event rotates one frame backwards before rotating correctly #328

14renus opened this issue Sep 12, 2017 · 0 comments

Comments

@14renus
Copy link

14renus commented Sep 12, 2017

Using the reach event to cause the reel image to play and stop at a certain frame, doesn't work properly. The image will go one frame backwards and then play forwards (starting at frame 1 and then goes to 2, then goes 36,35,...,24) <-- not sure why it rotates decreasing frames either

$('.reel').trigger('reach',[24,0.2]);

However, that problem doesn't happen when using the play event.

$('.reel').trigger('play',0.2)
              .bind('frameChange.custom', function(e,d,frame) {
                      if (frame === 24) {
                              $('.reel').trigger('stop')
                                            .unbind('frameChange.custom'); }});

this is my markup:

<img class="reel"
         data-images="..."
         data-responsive="true"
         data-cw="true"
         data-preloader="0"
         data-clickfree="false" >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant