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

IN animation stopped if another animation ends before the animsition-in-duration #148

Open
stefanoberetta opened this issue Aug 9, 2018 · 1 comment

Comments

@stefanoberetta
Copy link

I'm using this beautiful plugin with animate.css (for some other animations).
When animsition,js listen for the animationend in the $.fn.animateCallback the animation is stopped even if it's a children to end another animation.
I edited the row where you bind the animationend (inside the $.fn.animateCallback):

$this.on(end, function (evt) {
 if (evt.originalEvent.animationName === cls) {
  $this.off(end);
   return callback.call(this);
  }
 });

where cls is the class assigned to the animsition container (it has to be passed everytime the methos is called)

Best regards
S

@stefanoberetta stefanoberetta changed the title IN animation stopped if another animation iends before the animsition-in-duration IN animation stopped if another animation ends before the animsition-in-duration Aug 9, 2018
@tiagomv94
Copy link

nice, thank you very much! @stefanoberetta

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

2 participants