views:

25

answers:

1

How can I toggle an element to blind and fade at once? I tried the code

   Event.observe(window,'load',function() {
    Event.observe($("delete"),'click',function() {
     Effect.toggle("entry","appear",{ duration: 2.0 });
     Effect.toggle("entry","blind",{ duration: 2.5 });
    });
   });

One will run, but not both.

+1  A: 

Check out Effect.Parallel, although your example uses different durations, which I don't think it can do.

T.J. Crowder