animate(element, from, to, [className], [options]);
Performs an inline animation on the element which applies the provided to and from CSS styles to the element. If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided from and to styles will be applied alongside the given transition. If the CSS style provided in from