define('ember-overlays/scrim-fader', ['exports', 'liquid-fire'], function (exports, _liquidFire) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = scrimFader;
  function scrimFader() {
    var maxOpacity = 0.5;
    var promises = [];
    if (this.oldElement) {
      promises = promises.concat(Array.from(this.oldElement.find('>div')).map(function (elt) {
        return (0, _liquidFire.animate)(Ember.$(elt), { opacity: 0 }, { queue: false, duration: 250 });
      }));
    }
    if (this.newElement) {
      promises = promises.concat(Array.from(this.newElement.find('> div')).map(function (elt) {
        return (0, _liquidFire.animate)(Ember.$(elt), { opacity: [maxOpacity, 0] }, { queue: false, duration: 250 });
      }));
    }
    return Ember.RSVP.all(promises);
  }
});