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

                                                                                                                                                      .cancel()

                                                                                                                                                      The animation.cancel() method.

                                                                                                                                                      This Animation instance method is used to cancel an animation. If there are oncancel handlers, they are called.

                                                                                                                                                      Syntax

                                                                                                                                                      animation.cancel();

                                                                                                                                                      Return

                                                                                                                                                      • this - The Animation instance.

                                                                                                                                                      Usage

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

                                                                                                                                                      animation.cancel();