开发者

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

开发者 https://www.devze.com 2023-04-03 15:46 出处:网络
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 ude

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

精彩评论

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

关注公众号