How can I run a function after a certain element has completed an animation? This slide is down, like an animation, the element is hidden, and when something is clicked, it will become visible by moving its contents down (+ height).
I have no control over the animation function of this element, so I cannot use the callback function from the $ .animate function ...
Now i have something like
$('.trigger').click(function(){
which works, but I don’t like it, it’s hacky
source share