[#17] Added animation hook

In reference to issue 17. I've had to add an animation hook for our own means and it might be useful. This currently doesn't apply to popState.