API Documentation for: 0.5.0
Show:

CSSPlugin Class

Defined in: CSSPlugin:38
Module: TweenJS

A TweenJS plugin for working with numeric CSS string properties (ex. top, left). To use simply install after TweenJS has loaded:

 createjs.CSSPlugin.install();

You can adjust the CSS properties it will work with by modifying the cssSuffixMap property. Currently, the top, left, bottom, right, width, height have a "px" suffix appended.

Please note that the CSS Plugin is not included in the TweenJS minified file.

Constructor

CSSPlugin

()

Defined in CSSPlugin:38

Item Index

Methods

Properties

Methods

init

() protected static

Defined in init:87

install

() static

Defined in install:75

Installs this plugin for use with TweenJS. Call this once after TweenJS is loaded to enable this plugin.

step

() protected static

Defined in step:105

tween

() protected static

Defined in tween:115

Properties

cssSuffixMap

Object static

Defined in cssSuffixMap:56

Defines the default suffix map for CSS tweens. This can be overridden on a per tween basis by specifying a cssSuffixMap value for the individual tween. The object maps CSS property names to the suffix to use when reading or setting those properties. For example a map in the form {top:"px"} specifies that when tweening the "top" CSS property, it should use the "px" suffix (ex. target.style.top = "20.5px"). This only applies to tweens with the "css" config property set to true.

priority

Unknown protected static

Defined in priority:68