Sets the duration of this in milliseconds.
Use PropertyTransition instead
This function will set alpha and timeline if needed.
a Animation
the duration in milliseconds