public
Description: script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
Home | Edit | New

Effect.Squish

Combination Effects > Effect.Squish

Reduce the element to its top-left corner.

Examples


Effect.Squish('id_of_element');

Notes

Works safely with most Block Elements, except tables.

Demo

Source code of this demo


<div id="squish_demo" style="width:80px; height:80px; background:#ccc;"></div>
<ul>
  <li><a href="#" onclick="Effect.Squish('squish_demo'); return false;">Click me for a demo!</a></li>
  <li><a href="#" onclick="$('squish_demo').show(); return false;">Reset</a></li>
</ul>
Last edited by joe-loco, Sun May 11 11:29:37 -0700 2008
Home | Edit | New
Versions: