How to use the liquid-fire.explode function in liquid-fire

To help you get started, we’ve selected a few liquid-fire examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-animation / ember-animated / app / transitions / modal-popup.js View on Github external
export default function modalPopup(opts={}) {
  var [overlay, box] = explode(this, [
    '.lf-overlay',
    '.lm-container > div'
  ]);

  var overlayAnimation = animateOverlay;
  var overlayAnimationArgs = [];
  if (opts.overlay) {
    if (Ember.isArray(opts.overlay)) {
      overlayAnimation = this.lookup(opts.overlay[0]);
      overlayAnimationArgs = opts.overlay.slice(1);
    } else {
      overlayAnimation = this.lookup(opts.overlay);
    }
  }

  var boxAnimation = animateDialog;