JavaScript/Library/script.aculo.us

[edit]

Core Effects

以下の6つで構成されます

[edit]

Availability

script.aculo.us V1.0 以降で使用できます

[edit]

syntax

new Effect.EffectName( element, required-params, [options] );

elementはDOMエレメントのIDの文字列か、DOMエレメントのオブジェクトを指定します
required-paramsは使用するEffectによって変化します
optionsはEffectをカスタマイズするために追加で指定することができます

[edit]

Common parameters

すべてのCore Effectsで以下のパラメータを指定できます

OptionsinceDescription
durationV1.0Effectの開始から終了までの秒数をfloatで指定します. デフォルトは1.0です.
fpsV1.01秒間に画面を更新する回数を指定します. デフォルトは25です. 100以上は指定できません.
transitionV1.0アニメーションの動きを制御する関数(0~1を返す)を指定します. 次の関数が用意されています: Effect.Transitions.sinoidal (default), Effect.Transitions.linear, Effect.Transitions.reverse, Effect.Transitions.wobble, Effect.Transitions.flicker. ソースにはpulse,spring,none,fullがあります.
fromV1.0transitionの初期値を指定します, floatで0.0~1.0の間で指定します. デフォルトは0.0です.
toV1.0transitionの終了値を指定します, floatで0.0~1.0の間で指定します. デフォルトは1.0です.
syncV1.0Sets whether the effect should render new frames automatically (which it does by default). If true, you can render frames manually by calling the render() instance method of an effect. This is used by Effect.Parallel().
queueV1.5Sets queuing options. When used with a string, can be ‘front’ or ‘end’ to queue the effect in the global effects queue at the beginning or end, or a queue parameter object that can have {position:’front/end’, scope:’scope’, limit:1}. For more info on this, see Effect Queues.
delayV1.5Sets the number of seconds to wait before the effect actually starts. Defaults to 0.0.
direction??Sets the direction of the transition. Values can be either ‘top-left’, ‘top-right’, ‘bottom-left’, ‘bottom-right’ or ‘center’ (Default). Applicable only on Grow and Shrink effects.

翻訳中

tag: Effects?, JavaScript, Tween?


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

アークウェブのサービスやソリューションはこちら