| 489 | | <p>Restore the size of an element.</p> |
|---|
| 490 | | <dl class="docutils"> |
|---|
| 491 | | <dt>element:</dt> |
|---|
| 492 | | <dd>An element ID string or a DOM node (see |
|---|
| 493 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 489 | <p>Grows an <tt class="docutils literal"><span class="pre">element</span></tt> size using <a class="mochiref reference" href="#fn-scale">Scale</a>, <a class="mochiref reference" href="#fn-move">Move</a> |
|---|
| | 490 | and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. The <tt class="docutils literal"><span class="pre">element</span></tt> should |
|---|
| | 491 | have fixed width, height and top-left position. Before the effect |
|---|
| | 492 | starts, the <tt class="docutils literal"><span class="pre">element</span></tt> will be shown with |
|---|
| | 493 | <a class="mochiref reference" href="Style.html#fn-showelement">MochiKit.Style.showElement</a> and the size and position |
|---|
| | 494 | values will be read.</p> |
|---|
| | 495 | <dl class="docutils"> |
|---|
| | 496 | <dt>element:</dt> |
|---|
| | 497 | <dd>An element ID string or a DOM node (see |
|---|
| | 498 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 499 | <dt>options:</dt> |
|---|
| | 500 | <dd><p class="first">The following options and default values controls this |
|---|
| | 501 | effect. Note that the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect is turned |
|---|
| | 502 | off by default. See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p> |
|---|
| | 503 | <table border="1" class="last docutils"> |
|---|
| | 504 | <colgroup> |
|---|
| | 505 | <col width="34%" /> |
|---|
| | 506 | <col width="66%" /> |
|---|
| | 507 | </colgroup> |
|---|
| | 508 | <tbody valign="top"> |
|---|
| | 509 | <tr><td><tt class="docutils literal"><span class="pre">direction</span></tt></td> |
|---|
| | 510 | <td><tt class="docutils literal"><span class="pre">center</span></tt></td> |
|---|
| | 511 | </tr> |
|---|
| | 512 | <tr><td><tt class="docutils literal"><span class="pre">moveTransition</span></tt></td> |
|---|
| | 513 | <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td> |
|---|
| | 514 | </tr> |
|---|
| | 515 | <tr><td><tt class="docutils literal"><span class="pre">scaleTransition</span></tt></td> |
|---|
| | 516 | <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td> |
|---|
| | 517 | </tr> |
|---|
| | 518 | <tr><td><tt class="docutils literal"><span class="pre">opacityTransition</span></tt></td> |
|---|
| | 519 | <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.full</span></tt></td> |
|---|
| | 520 | </tr> |
|---|
| | 521 | </tbody> |
|---|
| | 522 | </table> |
|---|
| | 523 | </dd> |
|---|
| | 524 | </dl> |
|---|
| | 525 | <p>The <tt class="docutils literal"><span class="pre">direction</span></tt> option controls the origin point of the effect. |
|---|
| | 526 | The following values are allowed:</p> |
|---|
| | 527 | <blockquote> |
|---|
| | 528 | <table border="1" class="docutils"> |
|---|
| | 529 | <colgroup> |
|---|
| | 530 | <col width="34%" /> |
|---|
| | 531 | <col width="66%" /> |
|---|
| | 532 | </colgroup> |
|---|
| | 533 | <tbody valign="top"> |
|---|
| | 534 | <tr><td><tt class="docutils literal"><span class="pre">center</span></tt></td> |
|---|
| | 535 | <td>Grows from the center</td> |
|---|
| | 536 | </tr> |
|---|
| | 537 | <tr><td><tt class="docutils literal"><span class="pre">top-left</span></tt></td> |
|---|
| | 538 | <td>Grows from the top left corner</td> |
|---|
| | 539 | </tr> |
|---|
| | 540 | <tr><td><tt class="docutils literal"><span class="pre">top-right</span></tt></td> |
|---|
| | 541 | <td>Grows from the top right corner</td> |
|---|
| | 542 | </tr> |
|---|
| | 543 | <tr><td><tt class="docutils literal"><span class="pre">bottom-left</span></tt></td> |
|---|
| | 544 | <td>Grows from the bottom left corner</td> |
|---|
| | 545 | </tr> |
|---|
| | 546 | <tr><td><tt class="docutils literal"><span class="pre">bottom-right</span></tt></td> |
|---|
| | 547 | <td>Grows from the bottom right corner</td> |
|---|
| | 548 | </tr> |
|---|
| | 549 | </tbody> |
|---|
| | 550 | </table> |
|---|
| | 551 | </blockquote> |
|---|
| | 552 | <dl class="docutils"> |
|---|
| 502 | | <p>Shrinks an <tt class="docutils literal"><span class="pre">element</span></tt> to its center using <a class="mochiref reference" href="#fn-scale">Scale</a>, |
|---|
| 503 | | <a class="mochiref reference" href="#fn-move">Move</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. |
|---|
| 504 | | The <tt class="docutils literal"><span class="pre">element</span></tt> should have fixed width, height and top-left |
|---|
| 505 | | position. Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will |
|---|
| 506 | | be hidden with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the |
|---|
| 507 | | original size and position will be restored.</p> |
|---|
| | 561 | <p>Shrinks an <tt class="docutils literal"><span class="pre">element</span></tt> using <a class="mochiref reference" href="#fn-scale">Scale</a>, <a class="mochiref reference" href="#fn-move">Move</a> |
|---|
| | 562 | and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. The <tt class="docutils literal"><span class="pre">element</span></tt> should |
|---|
| | 563 | have fixed width, height and top-left position. Once the effect has |
|---|
| | 564 | completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with |
|---|
| | 565 | <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original size and |
|---|
| | 566 | position will be restored.</p> |
|---|