# Is it possible to have a delay at the end of each loop in Animation Action?

**URL:** <https://discourse.threejs.org/t/is-it-possible-to-have-a-delay-at-the-end-of-each-loop-in-animation-action/46918>\
**Category:** Questions\
**Tags:** animation\
**Created:** [January 16, 2023, 10:35am UTC](https://discourse.threejs.org/t/is-it-possible-to-have-a-delay-at-the-end-of-each-loop-in-animation-action/46918 "2023-01-16T10:35:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smithangshu\_Ghosh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/smithangshu_ghosh/32/10803_2.png) [@Smithangshu\_Ghosh](https://discourse.threejs.org/u/Smithangshu_Ghosh)\
**Post date:** [January 16, 2023, 10:35am UTC](https://discourse.threejs.org/t/is-it-possible-to-have-a-delay-at-the-end-of-each-loop-in-animation-action/46918/1 "2023-01-16T10:35:24Z")

</div>

I want to have a delay at the end of each animation loop. And after the delay again the animation loop will start again. Is it possible?

---

<div class="post-metadata">

**Author:** ![anidivr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/anidivr/32/32924_2.png) [@anidivr](https://discourse.threejs.org/u/anidivr)\
**Post date:** [January 16, 2023, 1:13pm UTC](https://discourse.threejs.org/t/is-it-possible-to-have-a-delay-at-the-end-of-each-loop-in-animation-action/46918/2 "2023-01-16T13:13:35Z")

</div>

you’re probably better off having a counter that just skips frames when needed.

---

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [January 16, 2023, 11:20pm UTC](https://discourse.threejs.org/t/is-it-possible-to-have-a-delay-at-the-end-of-each-loop-in-animation-action/46918/3 "2023-01-16T23:20:04Z")

</div>

You can make use of the “finished” event listener of the three Animation mixer

```javascript
mixer.addEventListener('finished',function(){
//reset and play clip again after timeout 
})

```

Otherwise you can create logic using the `isRunning` [method](https://threejs.org/docs/#api/en/animation/AnimationAction.isRunning) on a particular action, if false set a timeout reset clip and play from the beginning again…

---

<div class="post-metadata">

**Author:** ![Smithangshu\_Ghosh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/smithangshu_ghosh/32/10803_2.png) [@Smithangshu\_Ghosh](https://discourse.threejs.org/u/Smithangshu_Ghosh)\
**Post date:** [February 7, 2023, 11:17am UTC](https://discourse.threejs.org/t/is-it-possible-to-have-a-delay-at-the-end-of-each-loop-in-animation-action/46918/4 "2023-02-07T11:17:22Z")

</div>

Thank you all for the reply. Actually, I had to create timeline where user can import any number of animation with any number of repetition with delay in between, so that is very complex thing. So I handled this differently.
