lite
and the max
versions of the GSAP library are supported.TweenLite
.plugins/animation.gsap.js
.ScrollMagic.Scene
for a complete list of the standard options.Name | Type | Argument | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Options for the Scene. The options can be updated at any time. Properties
|
Name | Type | Argument | Default | Description |
---|---|---|---|---|
reset | boolean | <optional> | false | If true the tween will be reset to its initial values. |
0
, the tween will be triggered when scrolling forward past the scene's trigger position and reversed, when scrolling back.TweenMax.to()
(see example below).Name | Type | Description |
---|---|---|
TweenObject | object|string | A TweenMax, TweenLite, TimelineMax or TimelineLite object that should be animated in the scene. Can also be a Dom Element or Selector, when using direct tween definition (see examples). |
duration | number|object | A duration for the tween, or tween parameters. If an object containing parameters are supplied, a default duration of 1 will be used. |
params | object | The parameters for the tween |
tweenChanges
is true
, the progress update when scrolling will not be immediate, but instead the animation will smoothly animate to the target state.Name | Type | Argument | Description |
---|---|---|---|
newTweenChanges | boolean | <optional> | The new tweenChanges setting of the scene. |
Scene.change
,event: when used as setterget
- Current tweenChanges option value.