Js transit added to animation