-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Listen for transition end #12
Comments
The first I'm not sure if there's a reason for the second |
Ok I got it, thanks you 😄 ! Also I think you could provide a better callback here: basicLightbox/src/scripts/main.js Line 154 in ab2a2df
Why don't you listen for animation end? |
Removed the second Listening for animation end would be better. PR welcome :) |
You're using
requestAnimationFrame
two times but without changing dom propriety from javascript.I don't see how this can improve performance as you add class to animate dom element.
I can be wrong of course, if it's the case please light me candle 👍
basicLightbox/src/scripts/main.js
Line 123 in e82ed10
basicLightbox/src/scripts/main.js
Line 150 in e82ed10
The text was updated successfully, but these errors were encountered: