forked from madrobby/scriptaculous
-
Notifications
You must be signed in to change notification settings - Fork 0
Effect.Squish
joe-loco edited this page Sep 12, 2010
·
3 revisions
Combination Effects > Effect.Squish
Reduce the element to its top-left corner.
Effect.Squish('id_of_element');
Works safely with most Block Elements, except tables.
<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>