Used CSS3 animations instead of javascript for some animations, for performance