Platinum sponsors

Inherited values

See and override the tween parameters a property inherits from its animation.

A property inherits each of the tween parameters duration, delay, ease and composition that it does not set locally from its animation. Its Tween folder shows an inherited parameter in a dimmed row, with the value in use.

The Anime.js editor Tween folder of the y property of Cards rise, with duration and delay inherited and marked
createTimeline({ id: 'Cards intro', defaults: { duration: 600 } })
.label('Cards in', 200)
.add('.card', {
  id: 'Cards rise',
  y: { from: 40, to: 0 },
  delay: stagger(60, { ease: 'inOut(3)' }),
}, 'Cards in+=100');

The y property inherits the stagger delay of Cards rise, and its duration of 600, which Cards rise takes from the timeline defaults. See Default values.

Override an inherited value

Click the Override the inherited value button of the row. The property gets the value in use as its own local value, and you can edit it.

The duration row of the y property after the pencil button, set to 600 with an unsaved dot and its type menu

The save writes the value into the property object:

y: { from: 40, to: 0, duration: 600 },

Go back to the inherited value

Pick inherit in the type menu of the row. The save removes the parameter from the property object.

Keyframes

A property with keyframes splits its inherited duration equally between its keyframes. Each keyframe row shows its own part.

Previous
Next