       if (state == 'show')
         opts.opacity = 1
         if @options.location.match(/left/)
-          opts.left = '15px'
+          opts.left = @notice.css('left')
         else
-          opts.right = '15px'
+          opts.right = @notice.css('right')
       else
         opts.opacity = 0
         if @options.location.match(/left/)
-          opts.left = '-300px'
+          opts.left = @options.animationSpeed
         else
-          opts.right = '-300px'
+          opts.right = @options.animationSpeed
       opts
 
     Notifyr

  pluginName = 'notifyr'

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


      @options = $.extend({}, defaults, options)
      @_defaults = defaults
      @el = $(target)
      @init()

    Notifyr::init = ->
