Pages
    • GETTING STARTED
        • API REFERENCE
                                                                                                                                              • COMMAND LINE
                                                                                                                                                  On this page

                                                                                                                                                      .clear()

                                                                                                                                                      The timeline.clear() method.

                                                                                                                                                      This Timeline instance method is used to clear all animations from off the timeline.

                                                                                                                                                      Syntax

                                                                                                                                                      timeline.clear(except = []);

                                                                                                                                                      Parameters

                                                                                                                                                      • except: Array - An optional list of Animation instances to excempt.

                                                                                                                                                      Return

                                                                                                                                                      • this - The Timeline instance.

                                                                                                                                                      Usage

                                                                                                                                                      Obtain an instance of an ongoing animation and call .clear().

                                                                                                                                                      timeline.clear();