Canvallax object containing all classes & methods
- Source:
Classes
Mixins
Members
-
.ease
-
Easing functions for animations, adapted from http://greweb.me/2012/02/bezier-curve-based-easing-functions-from-concept-to-implementation/
- Source:
Properties:
Name Type Description linearfunction Linear easing
inQuadfunction Quadratic easing in
outQuadfunction Quadratic easing out
inOutQuadfunction Quadratic easing in & out, the default animation easing.
inCubicfunction Cubic easing in
outCubicfunction Cubic easing out
inOutCubicfunction Cubic easing in & out
inQuartfunction Quart easing in
outQuartfunction Quart easing out
inOutQuartfunction Quart easing in & out
Methods
-
<static> clone(target, properties, cloneChildren)
-
Create a clone of an object or Class
Parameters:
Name Type Description targetobject Original to clone. If not included, will default to
thispropertiesobject Properties to include on the clone
cloneChildrenboolean If the original has children, clone them.
- Source:
Returns:
- Cloned object containing extra properties from the provided object.
- Type
- object
-
<static> createClass(target, properties)
-
Create a new Class with the properties provided
Parameters:
Name Type Description targetobject Original to clone. If not included, will default to
thispropertiesobject Properties to include on the clone
- Source:
Returns:
- Cloned object containing extra properties from the provided object.
- Type
- object
-
<static> createElement()
-
Creates a custom Canvallax Element.
- Source:
-
<static> createTracker()
-
Creates a custom Canvallax Tracker.
- Source:
-
<static> extend(target)
-
Extend an object with properties from other objects.
If only one argument is provided, the
targetis assumed to bethisin the current context.Parameters:
Name Type Argument Description targetobject Target object to receive properties from the other objects.
object <repeatable>
Objects to merge
- Source:
Returns:
- Object with merged properties
- Type
- object