Added animation-duration option.