Replace animationend with setTimeout

Bug: 63253
Change-Id: Id4b998ad88bf27da8114f8194464bea8a11a0504
Merge "Replace animationend with setTimeout"