Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

TimelineMax

.shiftChildren()

.shiftChildren( amount:Number, adjustLabels:Boolean, ignoreBeforeTime:Number ) : *

Shifts the startTime of the timeline's children by a certain amount and optionally adjusts labels too.

Parameters

amount: Number

Number of seconds (or frames for frames-based timelines) to move each child.

adjustLabels: Boolean

(default = false) — If true, the timing of all labels will be adjusted as well.

ignoreBeforeTime: Number

(default = 0) — All children that begin at or after the startAtTime will be affected by the shift (the default is 0, causing all children to be affected). This provides an easy way to splice children into a certain spot on the timeline, pushing only the children after that point back to make room.

Returns : *

self (makes chaining easier)

Details

Shifts the startTime of the timeline's children by a certain amount and optionally adjusts labels too. This can be useful when you want to prepend children or splice them into a certain spot, moving existing ones back to make room for the new ones.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×