added an animation and moved styles to sass