         angular.extend options, triggerOptions
 
         showModal = (element) =>
-          element.removeClass "hide"
-          $timeout ->
-            element.addClass "visible"
-          , 0, false
+          $animate.removeClass element, "hide", ->
+            $animate.addClass element, "visible"
 
           # Update opened modal object
           @opened = {id, element, options}


angular.module("Mac").service("modal", [
  "$rootScope"
  "$timeout"
  "$templateCache"
  "$compile"

            element = angular.element(@modalTemplate).attr options.attributes
            wrapper = angular.element element[0].getElementsByClassName("modal-content-wrapper")
            wrapper.html template

            $animate.enter element, angular.element(document.body)
            $compile(element) viewScope

            showModal element
            $rootScope.$apply() if invokeApply
