# Repeating Animations

**URL:** <https://forum.kirupa.com/t/repeating-animations/649376>\
**Category:** programming\
**Created:** [October 26, 2021, 1:13am UTC](https://forum.kirupa.com/t/repeating-animations/649376 "2021-10-26T01:13:19Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![KERRYLOPEZ](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@KERRYLOPEZ](https://forum.kirupa.com/u/KERRYLOPEZ)\
**Post date:** [October 27, 2021, 6:04am UTC](https://forum.kirupa.com/t/repeating-animations/649376/21 "2021-10-27T06:04:36Z")

</div>

See this,

[![](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/8/3/83076fbdc37dfd9b19dc1713b3e179bc64e3dfee.jpeg "Animation Loops in JavaScript using requestAnimationFrame") ](https://www.youtube.com/watch?v=rNsC1VI9388&t=73s)

---

<div class="post-metadata">

**Author:** ![marqimoth](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@marqimoth](https://forum.kirupa.com/u/marqimoth)\
**Post date:** [October 27, 2021, 6:06am UTC](https://forum.kirupa.com/t/repeating-animations/649376/22 "2021-10-27T06:06:35Z")

</div>

ok

---

<div class="post-metadata">

**Author:** ![marqimoth](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@marqimoth](https://forum.kirupa.com/u/marqimoth)\
**Post date:** [October 27, 2021, 5:00pm UTC](https://forum.kirupa.com/t/repeating-animations/649376/23 "2021-10-27T17:00:12Z")

</div>

how would i make it stutter instead of an instant transition, like a wait until it moves

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [October 27, 2021, 6:55pm UTC](https://forum.kirupa.com/t/repeating-animations/649376/24 "2021-10-27T18:55:11Z")

</div>

You can use a timer (`setTimeOut`) to delay your initial call to `requestAnimationFrame`. The following article and video can help: [Timers in JavaScript](https://www.kirupa.com/html5/timers_js.htm)

---

<div class="post-metadata">

**Author:** ![marqimoth](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@marqimoth](https://forum.kirupa.com/u/marqimoth)\
**Post date:** [October 27, 2021, 6:56pm UTC](https://forum.kirupa.com/t/repeating-animations/649376/25 "2021-10-27T18:56:21Z")

</div>

ok

[Previous page](https://forum.kirupa.com/t/repeating-animations/649376.md?page=1)
