> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: pause() # Method package: wixAnimationsFrontend # Method menu location: wixAnimationsFrontend --> TimeLine --> pause # Method Link: https://dev.wix.com/docs/velo/velo-only-apis/wix-animations-frontend/time-line/pause.md # Method Description: Pauses a timeline. Pauses a running timeline. Note that when a timeline is created it is paused by default at the beginning of the timeline. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Pause a timeline ```javascript import wixAnimationsFrontend from 'wix-animations-frontend'; let timeline = wixAnimationsFrontend.timeline(); // ... timeline.pause(); ``` ## Create buttons for controlling how a timeline is played ```javascript import wixAnimationsFrontend from 'wix-animations-frontend'; let timeline = wixAnimationsFrontend.timeline( { "repeat": 3, "repeatDelay": 100, "yoyo": true } ); $w.onReady( function () { const myImage = $w("#myImage"); timeline .add( myImage, { "rotate": 360, "scale": .5, "duration": 1000 } ) .add( myImage, { "opacity": 0, "duration": 1000 } ); $w("#playButton").onClick( () => { timeline.play(); } ); $w("#reverseButton").onClick( () => { timeline.reverse(); } ); $w("#pauseButton").onClick( () => { timeline.pause(); } ); $w("#replayButton").onClick( () => { timeline.replay(); } ); } ); ``` ---