OptionaladvanceA Scene.addAnimations runs its list of animations and properties in parallel,
and at the end of last animation it moves the position forward.
Setting the advance:
true of an animation property will move forward the position
for the next property animation, but not the animation.
The property of each element moves independently.true of an animation that isn't the last one, will move forward
for the next animation within the list.
The value used with the maximum of all the elements of the all the properties
of the previous animation.false of the last animation, it won't move forward at the end.OptionalbypassDefines how the frames should be bypassed in case of a flush or another backward motion outside the rendering process. In a backward motion the first stage it's end point of animation.
OptionalbypassDefines how the frames should be bypassed in case of a flush or another forward motion outside the rendering process.
OptionaldirectionDefines the direction of each iteration.
Same as CSS animation-direction.
OptionaldurationDefines the duration of the animation of a single cycle
in terms of frames, seconds, minutes or milliseconds.
The total duration is duration*(iterationCount + 1).
In case of numerical values, BeamToIX uses defaultUnit
to known what kind of unit is it.
OptionaleasingAn easing is a interpolator runs t from [0, 1], where
t=0 is the first frame and t=1 the last frame of the animation.
This interpolator can be viewed as the speed interpolator and its the
first one in the Animation Pipeline.
The output value will be used to feed the .
Usually outputs a value from [0, 1] but other values are also possible.
This interpolator can be used outside physical motion (left/right/top/bottom).
In cases of textual property, such as color, text, src,
the easing will define how quickly those values will change
among a list defined valueText or by using valueFormat.
In this case, the startValue and value should be between [0, 1].
Setting a startValue higher than value,
will reverse the direction of the changes.
The easing can also be used to define the speed of the changes
of multi-parameter properties, such as text-shadow, by using as an input
of a valueFormat.
This is the first stage of the Animation Pipeline. The output value will be used to feed the .
BeamToIX includes a list of the most common easings by bundling the jquery.easing plugin. More can be added via plugins.
An easing can be defined by:
t.t.WARNING Code Handlers aren't teleported, therefore it can't be used in remote rendering.
OptionalenabledIf it's false, it will bypass the animation or property.
OptionalitemApplies a random changes with maximum of itemDelayDisturbance to the
itemDelayDuration for each element defined by the selector.
OptionalitemDelay of the start of the animation between 2 elements defined inside the selector.
The total duration of the animation will be: duration+count*itemDelayDuration.
OptionalitemApplies a modulus division to the elements defined in the selector when
it relates the itemDelayDuration.
A itemDelayDuration=2, will make the odd elements to have the same
itemDelayDuration.
OptionaliterationDefines how many times the animation repeats itself.
Same as CSS animation-iteration-count.
OptionaloscillatorAn oscillator is an optional interpolator that runs t from [easing(0), easing(1)]
and the usually outputs a value from [-Amplitude, Amplitude] where usually
f(0) = 0 and f(1) = 0.
Its output will be generate v = valueStart + (value - valueStart) * oscillator(easing(t))
and then will be injected into a path as input.
An oscillator has the following usages:
A rotational movement, where the oscillator defines the rotation and the easing the defines the speed.
Flashing elements, where an element changes its opacity or text-shadow,
and these values oscillate between [0, 1].
Uni-dimensional paths. Unlike paths, the oscillators have their value stored in the Action Link, allowing to link the end value to the next animation.
The oscillators shares the namespace with , allowing any easing function to operate also as a oscillator. Since the main function of an oscillator is to return to its original position at the end of the animation cycle, when an easing is used as an oscillator the best is to use the following:
{ iterationCount: 2,
direction: alternate
}
An oscillator can be defined by:
t.t.WARNING Code Handlers aren't teleported, therefore it can't be used in remote rendering.
OptionalpathOptionalpositionDefines the property name. The property corresponds to DOM style element or special properties
OptionalroundRound function to apply after easing->oscillator->path. If this value is not set, for pixels properties the round function will be used, for other properties there is no default round function.
OptionalvalueDefines the end numerical value into the
Animation Pipeline (easing->oscillator->path|valueText->valueFormat).
Easing interpolates from valueStart to value.
WARNING Code Handlers aren't teleported, therefore it can't be used in remote rendering.
OptionalvalueFormats the value using the sprintf rules.
This is the last node in the computation pipeline.
It can format numerical values returned by the easing->oscillator,
but also each value of a path and a value returning from valueText.
OptionalvalueDefines the starting value of an animation injected into the
Animation Pipeline (easing➝oscillator➝path|valueText➝valueFormat).
Easing interpolates from valueStart to value.
Use only if:
valueFormat.valueStart=0.WARNING Code Handlers aren't teleported, therefore it can't be used in remote rendering.
OptionalvalueProvides a list of textual values, expression or function to be interpolated. This value is computed after easing, oscillator and path interpolators and round function. Mutual exclusive with pixels, multi-dimension paths and booleans.
Used by textual properties such as color, url, font-family and text.
OptionalwaitEXPERIMENTAL Waits for the adapter to be ready to deliver an asset before instructing the render to move to the next frame or give the server order to store the image. Used to wait for loading images or sync with videos.
This feature is not implemented yet...Coming soon .
OptionalonThis event is fired before modifying an element property during rending.
Use if you need to handle virtual elements.
or if you want to manually set an element value.
If returns false, BeamToIX won't set the element property.
WARNING Events aren't teleported, therefore it can't be used in remote rendering.
Optionalargs: BeamToIXArgs
Defines parameters used both by
AnimationandAnimationProp. TheAnimationPropoverrides the parameters defined byAnimation. This way, an animation can have parameters for all animation properties and some animation properties can have different parameters. Thedurationparameter defined in the animation property