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>