el.tween('opacity', 0.5, 1)

On Fri, Jan 2, 2009 at 3:27 AM, AshleyQuick (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:

> Here's what I have thus far.  This works but I'd like to start the img at
> 0.5
>
> $$('.fader').each(function(el)
>                 {
>                         el.addEvent('mouseenter', function()
>                         {
>
> el.getFirst().set('tween',{duration:200,transition:Fx.Transitions.linear}).tween('opacity',1);
>
>                         });
>                         el.addEvent('mouseleave', function()
>                         {
>
> el.getFirst().set('tween',{duration:400,transition:Fx.Transitions.linear}).tween('opacity',0.5);
>
>                         });
>                 },this);
>
> ------------------------------
>  View message @
> http://n2.nabble.com/Help-tweaking-moo-img-fader..it%27s-working-but-I-can%27t-figure-out-how-to-start-at-0.5-opacity...-tp2101477p2101477.html
> To start a new topic under MooTools Users, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
Clientcide:  http://www.clientcide.com www.clientcide.com 
-- 
View this message in context: 
http://n2.nabble.com/Help-tweaking-moo-img-fader..it%27s-working-but-I-can%27t-figure-out-how-to-start-at-0.5-opacity...-tp2101477p2102932.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to