# SOLVED: Run Once Interactions Looping

**URL:** <https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644>\
**Category:** Bugs\
**Tags:** v1-9\
**Created:** [December 6, 2023, 10:30am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644 "2023-12-06T10:30:55Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 6, 2023, 10:30am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/1 "2023-12-06T10:30:55Z")

</div>

**Browser** : Chrome 110  
**OS** : macOS / Windows / Linux / etc.  
**URL** : Link to a page that illustrates this issue  
**Video** : Short screen recording that illustrates this issue (free tool: [jam.dev](https://jam.dev/))

[Please describe this bug in as much detail as possible so we can replicate & debug this bug]

Hi

Using Interactions as so, based on scrolling to element and to fire where I add a class:

 ![Screenshot 2023-12-06 at 10.29.29](https://forum.bricksbuilder.io/uploads/default/original/2X/e/e606f2d5213a7c03aea02a00e9b918a4c1b46267.png)

I tried ‘enter viewport’ as well, but on some instances, like on here, they just keep looping on scroll and feel quite buggy. Is this normal, and is there something else I should be doing? [https://whitespace.agency/services/digital-marketing/](https://whitespace.agency/services/digital-marketing/)

Oddly some uses of it work well, and others are just very glitchy.

TIA

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 6, 2023, 12:13pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/2 "2023-12-06T12:13:53Z")

</div>

Also visible on here, they feel quite skittish: [Handi App - White Space Advertising](https://whitespace.agency/our-work/handi-app/)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [December 7, 2023, 9:23am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/3 "2023-12-07T09:23:58Z")

</div>

Hi Rob,  
Thanks so much for your report!

Unfortunately, I cannot reproduce the issue. Would you be so kind as to send temporary login credentials and a link to this thread to [help@bricksbuilder.io](mailto:help@bricksbuilder.io) using the email address you used during the purchase?

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 7, 2023, 9:59am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/4 "2023-12-07T09:59:38Z")

</div>

Thanks Stefan. I’ve just sent that over now.

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [December 7, 2023, 11:29am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/5 "2023-12-07T11:29:48Z")

</div>

Thanks for the access data! There is indeed something strange with the “run only once” setting, if the interaction is directly applied to the loop item. It seems as if the interaction runs for all of the items first and then independently for each item again.

If I put the interaction on the `ul` and choose each `li` as selector (see " Digital Marketing Services“ ul/li), the run only once setting works as far as I can tell.

However, you will then no longer have this staggered animation effect…  
The devs need to look at this in detail 🧐

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 11, 2023, 10:23am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/6 "2023-12-11T10:23:42Z")

</div>

Sorry Stefan I missed this reply from you!

OK that makes sense and glad it’s not just me. Luckily I’ve used a class for it, so what’s the best bet for now - remove the interaction via Bricks and add the enter viewport code manually until this is solved?

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [December 11, 2023, 1:29pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/7 "2023-12-11T13:29:04Z")

</div>

This would at least be an alternative:

> [@timmse](#):
>
> If I put the interaction on the `ul` and choose each `li` as selector (see " Digital Marketing Services“ ul/li), the run only once setting works as far as I can tell.

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 11, 2023, 1:49pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/8 "2023-12-11T13:49:53Z")

</div>

OK I’ll give that a go. So essentially it depends where the interaction is sat? I must admit the interactions confused me to death as you can attach it to a class, and if you create it on the class, then you can edit it. But if it’s created on the ID but still attached to run on a class, you have to them remember which ID you created it on to locate it.

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 11, 2023, 1:51pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/9 "2023-12-11T13:51:31Z")

</div>

Also sorry Stefan, on there at the top, I am not animating as UL/LI just divs [https://whitespace.agency/services/](https://whitespace.agency/services/)

I have the animations running in various places. I am using BricksForge and GSAP, with pinned sections - I wonder if this is upsetting the viewport detection?

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [December 11, 2023, 2:05pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/10 "2023-12-11T14:05:48Z")

</div>

> [@timmse](#):
>
> If I put the interaction on the `ul` and choose each `li` as selector (see " Digital Marketing Services“ ul/li), the run only once setting works as far as I can tell.

I was referring exclusively to these cards:

 ![CleanShot 2023-12-11 at 15.01.45@2x](https://forum.bricksbuilder.io/uploads/default/original/2X/f/f5ccbadd7e3ac3bd5b4e1f854d417ccb4e3682a3.png)

If you use the same interaction/class with the interaction in other places, it will of course be difficult to make an egg-laying wool-milk sow out of it as long as the problem persists 😃

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [December 11, 2023, 3:42pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/11 "2023-12-11T15:42:05Z")

</div>

Thank you. Yes I was just trying to use fade-in-up (like I used to use in Oxygen or similar) to reveal animations on scroll so was trying to keep the classes to a minimum 🙂

Is this something that will be looked into fairly soon do you think Stefan, or should I hold off for a bit?

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [January 12, 2024, 2:00pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/12 "2024-01-12T14:00:57Z")

</div>

Hi Rob,  
We’ve fixed this issue in Bricks 1.9.5, now available as a one-click update in your WordPress Dashboard.

Changelog: [Bricks 1.9.5 Changelog – Bricks](https://bricksbuilder.io/release/bricks-1-9-5/)  
Please let us know if you are still experiencing issues.

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [February 1, 2024, 6:21pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/13 "2024-02-01T18:21:17Z")

</div>

Updated, thank you.

Are they not still firing for you multiple times and ignoring order coming in in order?

> **[Uncorking fresh creative notes for an extraordinary local vineyard - White...](https://whitespace.agency/our-work/sharpham-wine-rebrand/)**

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 2, 2024, 9:01am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/14 "2024-02-02T09:01:41Z")

</div>

Hi Rob,  
In my demo it works without any problems. What is the second trigger for in your case?

 ![CleanShot 2024-02-02 at 10.00.13@2x](https://forum.bricksbuilder.io/uploads/default/original/3X/7/4/747e47d810ddf9954bfb26597a2eec473c339ea3.jpeg)

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [February 2, 2024, 9:44am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/15 "2024-02-02T09:44:20Z")

</div>

Hey @timmse

Thanks for the reply. That was for data-animate I was using as a fallback when this wasnt working, to add css to that rule as I was having to get it to add/remove the CSS based on scroll, so the animation did not loop?

In this instance no style is being added so that should affect anything, but I will remove it too.

If I add the condition to a class now, do I need to tell it to target the class, or will it add that condition to every class ?

Thank you

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [February 2, 2024, 4:36pm UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/16 "2024-02-02T16:36:51Z")

</div>

Removed that data-attribute bit (even though it wasn’t being used) on that page Stefan and still happening annoyingly. I have ticked run only once also 🙂

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 5, 2024, 9:36am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/17 "2024-02-05T09:36:19Z")

</div>

If I look at the originally shared link and the interaction at Strategy, Performance, Creative, … it seems to work:

> **[Services - White Space Advertising](https://whitespace.agency/services/)**
>
> Services Archive - White Space Advertising

The question is where the difference compared to this:

> **[Uncorking fresh creative notes for an extraordinary local vineyard - White...](https://whitespace.agency/our-work/sharpham-wine-rebrand/)**

---

<div class="post-metadata">

**Author:** ![robp](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@robp](https://forum.bricksbuilder.io/u/robp)\
**Post date:** [February 5, 2024, 10:44am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/18 "2024-02-05T10:44:58Z")

</div>

You’re right there yeah, that’s a strange one in that case 😕

I am using GSAP with Bricksforge, but that’s the same for both of those pages.

I used the add/remove attribute when in viewport before, in interactions, and that seemed to work. I was just hoping I could use the native one now but still seems a bit janky/re-reunning for whatever reason on the single work pages.

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 6, 2024, 8:53am UTC](https://forum.bricksbuilder.io/t/solved-run-once-interactions-looping/17644/19 "2024-02-06T08:53:40Z")

</div>

Unfortunately, as I said, I cannot reproduce the problem as I do not use Bricksforge. However, the first step would be to deactivate Bricksforge and see if it then works. If this is the case, please contact Bricksforge.
