Used CSS animations rather than JQuery