Added animation to goafter/gobefore