Added support to set animation duration (#13468)

Added new model for animation that enables setting the duration.
Old way of setting animation as boolean is still supported.

Change-Id: Ic1162d23bc71dbbe11ac68d02381c2eb053f0f28