Class: from

canvallax.Animate. from


new from(target, duration, fromProperties, options)

Animate an object's properties to new values

Parameters:
Name Type Description
target object

Object to animate

duration number

Duration in seconds

fromProperties object

Properties & values to animate from

options object

Animation specific options

Source: