开发者

Running 2 Effects on the same selector using script.aculo.us

can you call Effect.Move and Effect.Appear on the same selector using scriptaculous or will one cancel out the other. If so whats a way around thi开发者_运维知识库s as one runs slightly before the uder finishes.


use Effect.Parallel For example:

 new Effect.Parallel([
     new Effect.Move('element', { sync: true, x: 100, y:300, mode: 'relative' }),
     new Effect.Appear('element',{ from: 1.0, to: 0.3 })
 ], { 
     duration: 1.0,
     delay: 0.5
 });

Effect.Parallel

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜