React animate on scroll not working