made animations work cross browser