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

                                                                                                                                                      .cancel()

                                                                                                                                                      The timeline.cancel() method.

                                                                                                                                                      This Timeline instance method is used to cancel all animations in the timeline. If there are oncancel handlers, they are called. Animation instances added after this call are canclled immediately.

                                                                                                                                                      Syntax

                                                                                                                                                      timeline.cancel(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 .cancel().

                                                                                                                                                      timeline.cancel();