Added ability to set viewport animation duration