Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 529 Bytes

add.md

File metadata and controls

26 lines (20 loc) · 529 Bytes

add()

This Timeline instance method adds a new animation instance to the timeline.

Syntax

// Obtain a Timeline instance and call add()
timeline.add(ani);

Parameters

  • ani - Ani: An instance of Ani.

Return

  • undefined

Usage

// The timeline
let timeline  = new Timeline;
// The animation instance
let ani  = new Ani(el, {opacity:0});
// Add
timeline.add(ani);