rails ajax visual_effect scriptaculous...
时间:2010-08-17 来源:adidaskebi
Rails 方 法用法 |
Scriptaculous 用法 |
效果简述 |
visual_effect(:fade, "target") |
new Effect.Fade("target",{}) |
渐隐到全部消失 |
visual_effect(:appear, "target") |
new Effect.Appear("target",{}) |
渐现到全部出现 |
visual_effect(:highlight, "target") |
new Effect.Highlight("target",{}) |
高亮效 |
Rails 方法用法 |
Scriptaculous 用法 |
效果简述 |
visual_effect(:puff, "target") |
new Effect.Puff("target",{}); |
放大、变淡到消失 |
visual_effect(:blind_down, "target") |
new Effect.BlindDown("target",{}) |
向下逐渐展开到全部出现 |
visual_effect(:blind_up, "target") |
new Effect.BlindUp("target",{}) |
向上逐渐收起到全部消失 |
visual_effect(:switch_off, "target") |
new Effect.SwitchOff("target",{}) |
向中间压缩到逐渐消失 |
visual_effect(:slide_down, "target") |
new Effect.SlideDown("target",{}) |
向下滑动到全部展开 |
visual_effect(:slide_up, "target") |
new Effect.SlideUp("target",{}) |
向下滑动到全部收起 |
visual_effect(:drop_out, "target") |
new Effect.DropOut("target",{}) |
整体向下掉、变淡到消失 |
visual_effect(:shake, "target") |
new Effect.Shake("target",{}) |
左右抖动 |
visual_effect(:pulsate, "target") |
new Effect.Pulsate("target",{}) |
颜色忽强忽淡地脉动 |
visual_effect(:squish, "target") |
new Effect.Squish("target",{}) |
压缩到消失 |
visual_effect(:fold, "target") |
new Effect.Fold("target",{}) |
卷起到消失 |
visual_effect(:grow, "target") |
new Effect.Grow("target",{}) |
变大到全部出现 |
visual_effect(:shrink, "target") |
new Effect.Shrink("target",{}) |
收缩到消失 |