Attributes > Functions


Operations

Tween a Number Attribute

tween-number-block

Applies a tween to the given number attribute (specified by internal name).

Actuate.tween(this, [NUMBER], {[TEXT]:[NUMBER]}).ease([EASING]);

Has Value?

value-block

Returns true if the given attribute has a value (is not "null").

(hasValue([ATTRIBUTE]))

Clear Value of Attributes

clear-block

Disassociates the given attribute from any value. (Sets its value to "null", does not have any effect on primitive types like numbers/booleans)

if(!isPrimitive([ATTRIBUTE])) {
  [ATTRIBUTE] = getDefaultValue([ATTRIBUTE]);
}