| 329 | | <p>Make an <tt class="docutils literal"><span class="pre">element</span></tt> double size, and then make it disappear using the |
|---|
| 330 | | <a class="mochiref reference" href="#fn-scale">Scale</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects. Once the effect |
|---|
| 331 | | has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with |
|---|
| | 329 | <p>Make an <tt class="docutils literal"><span class="pre">element</span></tt> double size while also fading it using the |
|---|
| | 330 | <a class="mochiref reference" href="#fn-scale">Scale</a> and <a class="mochiref reference" href="#fn-opacity">Opacity</a> effects in parallel. |
|---|
| | 331 | Once the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden with |
|---|
| 502 | | <p>Shrink an element to its center.</p> |
|---|
| 503 | | <dl class="docutils"> |
|---|
| 504 | | <dt>element:</dt> |
|---|
| 505 | | <dd>An element ID string or a DOM node (see |
|---|
| 506 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 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> |
|---|
| | 508 | <dl class="docutils"> |
|---|
| | 509 | <dt>element:</dt> |
|---|
| | 510 | <dd>An element ID string or a DOM node (see |
|---|
| | 511 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 512 | <dt>options:</dt> |
|---|
| | 513 | <dd><p class="first">The following options and default values controls this |
|---|
| | 514 | effect. Note that the <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect is turned |
|---|
| | 515 | off by default. See also the <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>:</p> |
|---|
| | 516 | <table border="1" class="last docutils"> |
|---|
| | 517 | <colgroup> |
|---|
| | 518 | <col width="34%" /> |
|---|
| | 519 | <col width="66%" /> |
|---|
| | 520 | </colgroup> |
|---|
| | 521 | <tbody valign="top"> |
|---|
| | 522 | <tr><td><tt class="docutils literal"><span class="pre">direction</span></tt></td> |
|---|
| | 523 | <td><tt class="docutils literal"><span class="pre">center</span></tt></td> |
|---|
| | 524 | </tr> |
|---|
| | 525 | <tr><td><tt class="docutils literal"><span class="pre">moveTransition</span></tt></td> |
|---|
| | 526 | <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td> |
|---|
| | 527 | </tr> |
|---|
| | 528 | <tr><td><tt class="docutils literal"><span class="pre">scaleTransition</span></tt></td> |
|---|
| | 529 | <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.sinoidal</span></tt></td> |
|---|
| | 530 | </tr> |
|---|
| | 531 | <tr><td><tt class="docutils literal"><span class="pre">opacityTransition</span></tt></td> |
|---|
| | 532 | <td><tt class="docutils literal"><span class="pre">MochiKit.Visual.Transitions.none</span></tt></td> |
|---|
| | 533 | </tr> |
|---|
| | 534 | </tbody> |
|---|
| | 535 | </table> |
|---|
| | 536 | </dd> |
|---|
| | 537 | </dl> |
|---|
| | 538 | <p>The <tt class="docutils literal"><span class="pre">direction</span></tt> option controls the destination point of the |
|---|
| | 539 | shrink effect. The following values are allowed:</p> |
|---|
| | 540 | <blockquote> |
|---|
| | 541 | <table border="1" class="docutils"> |
|---|
| | 542 | <colgroup> |
|---|
| | 543 | <col width="34%" /> |
|---|
| | 544 | <col width="66%" /> |
|---|
| | 545 | </colgroup> |
|---|
| | 546 | <tbody valign="top"> |
|---|
| | 547 | <tr><td><tt class="docutils literal"><span class="pre">center</span></tt></td> |
|---|
| | 548 | <td>Shrinks to the center</td> |
|---|
| | 549 | </tr> |
|---|
| | 550 | <tr><td><tt class="docutils literal"><span class="pre">top-left</span></tt></td> |
|---|
| | 551 | <td>Shrinks to the top left corner</td> |
|---|
| | 552 | </tr> |
|---|
| | 553 | <tr><td><tt class="docutils literal"><span class="pre">top-right</span></tt></td> |
|---|
| | 554 | <td>Shrinks to the top right corner</td> |
|---|
| | 555 | </tr> |
|---|
| | 556 | <tr><td><tt class="docutils literal"><span class="pre">bottom-left</span></tt></td> |
|---|
| | 557 | <td>Shrinks to the bottom left corner</td> |
|---|
| | 558 | </tr> |
|---|
| | 559 | <tr><td><tt class="docutils literal"><span class="pre">bottom-right</span></tt></td> |
|---|
| | 560 | <td>Shrinks to the bottom right corner</td> |
|---|
| | 561 | </tr> |
|---|
| | 562 | </tbody> |
|---|
| | 563 | </table> |
|---|
| | 564 | </blockquote> |
|---|
| | 565 | <dl class="docutils"> |
|---|
| 515 | | <p>Switch an element between appear and fade.</p> |
|---|
| 516 | | <dl class="docutils"> |
|---|
| 517 | | <dt>element:</dt> |
|---|
| 518 | | <dd>An element ID string or a DOM node (see |
|---|
| 519 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| 520 | | <dt>options:</dt> |
|---|
| 521 | | <dd><table border="1" class="first last docutils"> |
|---|
| | 574 | <p>Switches the <tt class="docutils literal"><span class="pre">element</span></tt> visibility using a pulsating |
|---|
| | 575 | <a class="mochiref reference" href="#fn-opacity">Opacity</a> effect. The effect both starts and |
|---|
| | 576 | ends with a <tt class="docutils literal"><span class="pre">0</span></tt> opacity value.</p> |
|---|
| | 577 | <dl class="docutils"> |
|---|
| | 578 | <dt>element:</dt> |
|---|
| | 579 | <dd>An element ID string or a DOM node (see |
|---|
| | 580 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 581 | <dt>options:</dt> |
|---|
| | 582 | <dd><p class="first">The <tt class="docutils literal"><span class="pre">pulses</span></tt> option controls the number of pulses |
|---|
| | 583 | made during the effect. See also the |
|---|
| | 584 | <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>.</p> |
|---|
| | 585 | <table border="1" class="last docutils"> |
|---|
| 544 | | <p>Reduce first the vertical size, and then the horizontal size.</p> |
|---|
| 545 | | <dl class="docutils"> |
|---|
| 546 | | <dt>element:</dt> |
|---|
| 547 | | <dd>An element ID string or a DOM node (see |
|---|
| 548 | | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 605 | <p>Reduce first the <tt class="docutils literal"><span class="pre">element</span></tt> vertical size, and then the |
|---|
| | 606 | horizontal size using two <a class="mochiref reference" href="#fn-scale">Scale</a> effects in sequence. |
|---|
| | 607 | The <tt class="docutils literal"><span class="pre">element</span></tt> should have both fixed width and height. Once |
|---|
| | 608 | the effect has completed, the <tt class="docutils literal"><span class="pre">element</span></tt> will be hidden |
|---|
| | 609 | with <a class="mochiref reference" href="Style.html#fn-hideelement">MochiKit.Style.hideElement</a> and the original |
|---|
| | 610 | size and position will be restored.</p> |
|---|
| | 611 | <dl class="docutils"> |
|---|
| | 612 | <dt>element:</dt> |
|---|
| | 613 | <dd>An element ID string or a DOM node (see |
|---|
| | 614 | <a class="mochiref reference" href="DOM.html#fn-getelement">MochiKit.DOM.getElement</a>).</dd> |
|---|
| | 615 | <dt>options:</dt> |
|---|
| | 616 | <dd>See <a class="mochiref reference" href="#fn-defaultoptions">DefaultOptions</a>. Note that the options |
|---|
| | 617 | will only affect the first <a class="mochiref reference" href="#fn-scale">Scale</a> effect.</dd> |
|---|