Fixed a bug causing animations to jump on hover.