manually implement animation on index page