Namespace: canvallax

canvallax

Canvallax object containing all classes & methods

Source:

Classes

Animate
Ellipse
Group
Image
Polygon
Rectangle
styles
TrackElement
TrackPointer
TrackScroll

Mixins

Element
Tracker

Members


.ease

Properties:
Name Type Description
linear function

Linear easing

inQuad function

Quadratic easing in

outQuad function

Quadratic easing out

inOutQuad function

Quadratic easing in & out, the default animation easing.

inCubic function

Cubic easing in

outCubic function

Cubic easing out

inOutCubic function

Cubic easing in & out

inQuart function

Quart easing in

outQuart function

Quart easing out

inOutQuart function

Quart easing in & out

Source:

Methods


<static> clone(target, properties, cloneChildren)

Create a clone of an object or Class

Parameters:
Name Type Description
target object

Original to clone. If not included, will default to this

properties object

Properties to include on the clone

cloneChildren boolean

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
target object

Original to clone. If not included, will default to this

properties object

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 target is assumed to be this in the current context.

Parameters:
Name Type Argument Description
target object

Target object to receive properties from the other objects.

object <repeatable>

Objects to merge

Source:
Returns:
  • Object with merged properties
Type
object