Button animation CSS
Check block logic, and added external API calls