# How to trigger Pinegrow Interaction several times per Javascript

**URL:** <https://forum.pinegrow.com/t/how-to-trigger-pinegrow-interaction-several-times-per-javascript/8920>\
**Category:** Pinegrow Interactions Add-on\
**Created:** [May 20, 2024, 4:13pm UTC](https://forum.pinegrow.com/t/how-to-trigger-pinegrow-interaction-several-times-per-javascript/8920 "2024-05-20T16:13:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riccarcharias](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/riccarcharias/32/4051_2.png) [@Riccarcharias](https://forum.pinegrow.com/u/Riccarcharias)\
**Post date:** [May 20, 2024, 4:13pm UTC](https://forum.pinegrow.com/t/how-to-trigger-pinegrow-interaction-several-times-per-javascript/8920/1 "2024-05-20T16:13:26Z")

</div>

Hi,

I try to trigger a Pinegrow interaction several times with javascript.

I can trigger an animation with Javascript: pgia.play(document.getElementById(“id”), “animationname”);  
That works perfectly.

I want to trigger the same animation several times. The animation does “recreate on play”. It works when I click a link with href=“javascript:pgia.play(document.getElementById(“id”), “animationname”);” multiple times. But not the I try something like:

pgia.play(document.getElementById(“id”), “animationname”);  
pgia.play(document.getElementById(“id”), “animationname”);

or

document.getElementById(“IdOfLink”).click();  
document.getElementById(“IdOfLink”).click();

Then the animation is just triggered once.

I tried anything on these page: [API | Pinegrow Web Editor](https://pinegrow.com/docs/interactions/api/) but nothing works for me. @matjaz @RobM do you have some ideas?

Best regards and thanks a lot!
