RJS参考之Visual Effects

RJS所使用的是Scriptaculous库的Effects:

[b]
appear
[/b]
Element gradually appears

[b]
blind_down
[/b]
Causes the div element specified to slowly slide down into visibility like a blind being pulled down

[b]
blind_up
[/b]
The opposite of blind_down. Causes the element to slowly slide up and out of view like a blind being drawn up.

[b]
drop_out
[/b]
Causes the element to drop down out of view.

[b]
fade
[/b]
The opposite of appear. The element gradually fades from view.

[b]
fold
[/b]
First blinds up the element about 90% of the way and then squishes it over to the left side of the region it originally occupied.

[b]
grow
[/b]
Element grows up and into view from the bottom of the area occupied by the element.

[b]
highlight
[/b]
Perform the "Yellow Fade Technique" on the element.

[b]
puff
[/b]
The element expands and becomes transparent until it disappears.

[b]
pulsate
[/b]
Make the element flash on and off.

[b]
shake
[/b]
Causes the element to shake back and forth horizontally. Great for drawing the user's attention.

[b]
shrink
[/b]
The opposite of grow. The element shrinks away off of the screen toward the bottom of the area it occupies.

[b]
slide_down
[/b]
Causes the entire element to slide down into view.

[b]
slide_up
[/b]
The opposite of slide_down. Causes the element to slide up and out of view.

[b]
squish
[/b]
Squishes the element out of view by quickly compressing it into the upper left hand corner of the space it occupies.

[b]
switch_off
[/b]
Causes the element to flicker and the drops out of view, similar to drop_out.

[b]
toggle_appear
[/b]
Toggles the element between being visible and hidden. Uses appear when making the element visible and fade when hiding the element.

[b]
toggle_blind
[/b]
The same as toggle_appear, but uses blind_down and blind_up for showing and hiding the elements respectively.

[b]
toggle_slide
[/b]
The same as toggle_appear, but uses slide_down and slide_up for showing and hiding the elements respectively.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值