Fix animation on browsers which don't support transitions