Development

Changeset 2729

You must first sign up to be able to contribute.

Changeset 2729

Show
Ignore:
Timestamp:
11/17/06 11:49:11 (2 years ago)
Author:
superhaggis
Message:

Added example usage for yui_animation().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfYUIPlugin/lib/helper/YUIAnimationHelper.php

    r2724 r2729  
    7070 *   'by_height'        => The height that the element should change by. 
    7171 *    
     72 * Example usage:   
     73 * 
     74 *   100x50px black box that expands to 400x200px after 2 seconds using 
     75 *   the 'elasticOut' animation effect. 
     76 * 
     77 *   <?php use_helper('YUIAnimation') ?> 
     78 *   ... 
     79 *   <div id="foo" style="background-color: #000000; height: 50px; width: 100px"></div> 
     80 *   <?php echo link_to('click me!', '#', array( 
     81 *     'onclick' => yui_animation('elasticOut', 'foo', array( 
     82 *       'from_height' => '50', 
     83 *       'from_width' => '100', 
     84 *       'to_height' => '200', 
     85 *       'to_width' => '400', 
     86 *       'duration' => '2', 
     87 *     )), 
     88 *   )) ?> 
     89 * 
    7290 * @param string $effect 
    7391 * @param string $element