Allow configuring animation duration