Class: CCSSGlobalAnimation

animationmanager~CCSSGlobalAnimation(cssRule)

Keyframed animation that controls all other animations. Unique from other CSS animations that have keyframes in that it precisely controls when certain animations start and stop. See version-style.css for more info.

Constructor

new CCSSGlobalAnimation(cssRule)

This constructor is with the assumption that the keyframes start with CCSSGLOBAL, and that you follow how CCSSGLOBAL animations are supposed to work according to version-style.css.
Parameters:
Name Type Description
cssRule CSSKeyframesRule Associated @keyframes rule.
Source:
See:

Extends

Members

currTime

The time when this animation started playing.
Overrides:
Source:

globalParent :string

What animation this belongs to.
Type:
  • string
Inherited From:
Source:

name :string

The animation name.
Type:
  • string
Inherited From:
Source:

nextTimeOffset

If the animation is playing but needs to be delayed for a certain amount of time, how much time (in ms) we should wait. Not set in this class, but in its descendants.
Inherited From:
Source:

options

The options inherited from the parent module:animationmanager~CCSSAnimationBase, ultimately created by module:animationmanager~CCSSGlobalAnimation#playKeyframedAnimation.
Inherited From:
Source:

playStack

A stack of all the keyframes to play one after the other.
Overrides:
Source:

timeline :Map:.<number:, {animations:: Array:.<CCSSAnimationBase:>, index:: number:}>

A map of all the keyframes at the time that they will play it, by miliseconds.
Type:
  • Map:.<number:, {animations:: Array:.<CCSSAnimationBase:>, index:: number:}>
Overrides:
Source:

Methods

evaluateCCSSAnimProp(animProp) → {Object}

Called exclusively by module:animationmanager~CCSSAnimationBase#readToAnimStore for reading an animation property and getting data.
Parameters:
Name Type Description
animProp string Property value for animation
Inherited From:
Source:
Returns:
An object containing animation data.
Type
Object

frameUpdate(totalPlayTime, nextTime) → {Object}

Parameters:
Name Type Description
totalPlayTime number Total duration this animation has been playing for.
nextTime number The time the next keyframe will start.
Overrides:
Source:
Returns:
Animations is the result of (or an object in the shape of the result of) module:animationmanager~CCSSAnimationBase#readToAnimStore.
Type
Object

initPlay(time, options)

Starts playing the animation.
Parameters:
Name Type Description
time number The time from module:animationmanager~AnimationManager#frameUpdate.
options Object:.<string:, Object:> A set of options inherited from the parent module:animationmanager~CCSSAnimationBase, ultimately created by module:animationmanager~CCSSGlobalAnimation#playKeyframedAnimation
Overrides:
Source:

readToAnimStore(frame) → {Object:.<string:, {animName:: string:, duration:: number:, selectors:: Array:.<string:>}>}

Reads a CSSKeyframeRule and stores all the relevant CCSS Information (like variable and timing information from --ANIM- variables) to a store.
Parameters:
Name Type Description
frame CSSKeyframeRule
Inherited From:
Source:
Returns:
Store of all frame animation values.
Type
Object:.<string:, {animName:: string:, duration:: number:, selectors:: Array:.<string:>}>