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

                                                                                                                                                      .finish()

                                                                                                                                                      The timeline.finish() method.

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

                                                                                                                                                      Syntax

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

                                                                                                                                                      timeline.finish();