- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
- 纳金币
- 17488
- 精华
- 1
|
Fade To (Animation Behavior)
Summary
Animates the opacity of the object to a set level over time.
Category
Latest Behaviors
Author
Gavin Kistner
Difficulty
(Reference)
Time to Complete
5 Minutes
Downloads
Click Here
to download the associated files.
(This document covers version 2.1.3 of the 'Fade To' behavior, current as of 2005-Apr-20)
Description
The
Pulse?
option causes the opacity to immediately animate back to the original level once it has reached the end value.
The
Revert?
option causes the opacity to animate back to the original level once the ‘opposite’ event occurs. For example, if the
Start Change (Forward)
action is invoked as the result of an ‘onMouseDown’ event on someObject, the
Start Change (Reverse)
action will automatically be set to***n ‘onMouseUp’ for the same object. The following event pairs are recognized:
onMouseOver <-> onMouseOut
onGroupedMouseOver <-> onGroupedMouseOut
onMouseDown <-> onMouseUp
onAttach <-> onDetach
onMiddleMouseDown <-> onMiddleMouseUp
onKeyDown <-> onKeyUp
onMouseClick <-> onMouseClick
onMouseDblClick <-> onMouseDblClick
Events which are their own opposite (e.g. onMouseClick) will reverse the next time the event occurs. Events which have no opposite (e.g. onLoadError) will ignore the
Revert?
option.
If
Pulse?
is checked, the
Revert?
option is ignored.
Basic Properties
Opacity
The opacity level to end at.
Transition Time (sec)
Amount of time in seconds that it will take to reach the end opacity.
Advanced Properties
Change When
When should the parent start changing opacity?
Trigger Key
If 'Change When' is 'Key Down', the name of the key to watch for.
Revert?
Revert changes when opposite event occurs?
Pulse?
Return to original value when done? (Only if 'Revert?' is off.)
Actions
Start Change (Forward)
Begin/resume changing the opacity to the end value.
Start Change (Reverse)
Begin/resume reverting the opacity back to the original.
Stop Fading
Stop (pause) the opacity change.
Toggle Playback
If the animation is***nning, stop it; otherwise, start it (in the direction last headed).
Events
Start
Fires when the 'Start Change (Forward)' action is invoked.
Reverse
Fires when the 'Start Change (Reverse)' action is invoked.
Stop
Fires when the 'Stop Fading' action is invoked, or when the change finishes.
Pulse
Fires when the opacity reverses 'direction' (if 'Pulse?' is chosen).
Demonstration
View Demonstration Project
Download Project File
|
|