Is there a way to trigger a getURL after a animation?

I was wondering if there was a way to trigger getURL after an animation has finished. So like, when a user clicks a button, some sort of animation happens and then once the animation finishes, it will trigger a new url.

Thanks in advance.