         zIndex: "inherit"
         color:  "#2f3035"
 
-      bars = angular.element element[0].getElementsByClassName("bar")
-
       setSpinnerSize = (size) ->
-        bars.css
+        updateBars
           height:       size * 0.32 + "px"
           left:         size * 0.445 + "px"
           top:          size * 0.37 + "px"


      if attrs.macSpinnerColor?
        attrs.$observe "macSpinnerColor", (value) ->
          bars.css "background", value if value? and value
      else
        bars.css "background", defaults.color

]

      degree = i * 36
      styl   = {}
      bar    = angular.element """<div class="bar"></div>"""

      # Cache each bar for css updates
      bars.push bar[0]

      styl[animateCss]   = "fade 1s linear infinite #{delay}s"
      styl[transformCss] = "rotate(#{degree}deg) translate(0, 130%)"
