It was `transitionend` and not `animationend`…
Merge pull request #25 from oncletom/master

Not working in Firefox