code: function getAnimationData(str) {
      var fade = /fade/i.test(str);
      var pop = /pop/i.test(str);
      return {
        animate: fade || pop,
        pop: pop,
        fade: fade
      };
    }
docs: /*
  getAnimationData('popAndFade') // {animate: true,  pop: true,  fade: true}
  getAnimationData('fade')       // {animate: true,  pop: false, fade: true}
  getAnimationData('pop')        // {animate: true,  pop: true,  fade: false}
  getAnimationData('foo')        // {animate: false, pop: false, fade: false}
  getAnimationData(null)         // {animate: false, pop: false, fade: false}