       @el.append @notice
       @notice
         .stop()
-        .animate
-          opacity: 1
-          right: '15px'
-        , 250, 'easeOutBack', =>
+        .animate @animateOptions('show'), @options.animationSpeed, 'easeOutBack', =>
           @el.trigger 'notification-display-complete'
 
     Notifyr::empty = ->

  defaults =
    sticky: true
    location: 'top-right'
    classes: []
    closeButtonHtml: '<button class="notification-close">&times;</button>'


    Notifyr::remove = ->
      @notice
        .stop()
        .animate @animateOptions('hide'), @options.animationSpeed, 'easeInBack', =>
          @el.empty()
          @el.trigger 'notification-remove-complete'

    Notifyr::animateOptions = (state) ->
      opts = {}
      if (state == 'show')
        opts.opacity = 1
        opts.right = '15px'
      else
        opts.opacity = 0
        opts.right = '-300px'
      opts

    Notifyr

