-
I'm using foundation zurb v6, and I want to know when the reveal has opened completely. I used the code below to understand when the reveal has opened:
And it worked properly, But when I set an animation to opening & closing the reveal, It won't work anymore. So I think I have to use a code to see when the animation is finished as well. Actually I suppose that I need a callback for reveal animation. And this is my reveal element:
Is there a trigger to see when the reveal opening animation has finished? I'd appreciate any help on this issue :( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So if you add a console.log statement into callback, it doesn't work? It sure does work for me. |
Beta Was this translation helpful? Give feedback.
-
Finally I solved this issue by using a timeout like this:
|
Beta Was this translation helpful? Give feedback.
Finally I solved this issue by using a timeout like this:
$(document).on('open.zf.reveal', '.commentReveal', function () { var revealId = $(this).attr('id'); setTimeout(function(){ Some Codes Here }, 250); });