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

Latest commit

 

History

History
27 lines (20 loc) · 551 Bytes

remove.md

File metadata and controls

27 lines (20 loc) · 551 Bytes

remove()

This Timeline instance method removes an animation instance from the timeline.

Syntax

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

Parameters

  • ani - Ani: An instance of Ani.

Return

  • undefined

Usage

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

// Add
timeline.remove(ani);