allow user to set animation duration