fixing css animations