For example, throw this in effects.js

Effect.BlindRight = function(element) {
  $(element).style.width   = '0px';
  Element.makeClipping(element);
  Element.show(element);
  return new Effect.Scale(element, 100,
    Object.extend({ scaleContent: false,
      scaleY: false,
      scaleMode: 'contents',
      scaleFrom: 0,
      afterFinish: function(effect) {
        Element.undoClipping(effect.element);
      }
    }, arguments[1] || {})
  );
}

BlindLeft will be more difficult.  You'll have to float the div right, and call a function similar to above...It'll still clip the right-most content, though.

-Mark Chadwick
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to