Fixed animations using angular's internal code