animation now works for all browsers