Replace absolute-animations with translate