add animation effect to front end