Move element.animate to animation-constructor