Ho开发者_如何学Cw 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.
Check out Effect.Parallel, although your example uses different durations, which I don't think it can do.
精彩评论