Class: fromTo

canvallax.Animate. fromTo


new fromTo(target, duration, fromProperties, toProperties, 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

toProperties object

Properties & values to animate to

options object

Animation specific options

Source: