# Terminating Animations

**URL:** <https://forum.bubble.io/t/terminating-animations/162446>\
**Category:** Bugs\
**Created:** [July 30, 2021, 5:53pm UTC](https://forum.bubble.io/t/terminating-animations/162446 "2021-07-30T17:53:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 30, 2021, 5:53pm UTC](https://forum.bubble.io/t/terminating-animations/162446/1 "2021-07-30T17:53:38Z")

</div>

Hello everyone! I have written out an animation for my homepage load screen. Essentially, a few elements appear in sequence with pauses between them. I have tried to add a “skip” button to allow users to get straight to the site. However, it seems that there is no way to terminate animations. I placed “terminate this workflow” actions all over the place in an effort to stop the workflow before and after each of the “pause” actions. It still runs the animations no matter what I do. I have even tried to move the workflow from the “On Page Load” event to “Custom Events” but it didn’t make a difference. No matter what I do or what condition I place on the animations, they WILL run. Here is the workflow without the “Terminate” actions:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/c/0c9497e6b0a48317ac9eba8618fe958a678d439d.png)

---

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 31, 2021, 4:38am UTC](https://forum.bubble.io/t/terminating-animations/162446/2 "2021-07-31T04:38:17Z")

</div>

Has anyone ever managed to terminate workflows with animations based on a custom state? I’m still struggling with this issue ☹

---

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 31, 2021, 4:45am UTC](https://forum.bubble.io/t/terminating-animations/162446/3 "2021-07-31T04:45:25Z")

</div>

I have broken up the animation into steps, with a “terminate this workflow” at the start of each step that will run only when the skip button’s state “clicked” is set to “yes”. I then try to set the state to “yes” with the button, but these workflows continue to run!

On page load, trigger the 5 animations in sequence via custom events:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/8/d886851d9b0e81f9a9ee4bc874eb4625a28eb36a.png)

Animation 1:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/1/61e69d767bf843b964ee66a0ff51bb23a2763246.png)

Animation 2:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/6/e6218259b4f9cb679f17d6eb41c55bb2cf39db68.png)

Animation 3:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9ed2fc3ed912e23ba6c87b1743614dbec80e871c.png)  
  
Animation 4:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c2e0b1eabd23d1c255781596a7f10f6d5e8b84a7.png)

Animation 5:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/6/9670e4165e6d0e86d4a7f362e38650c034712d4f.png)

Example of “terminate workflow” condition set at the beginning of each animation event.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/b/cb86c04fe4936a71a5842e9c5ad51f803ec74e7b.png)

Skip Button Setting the clicked state to “yes”

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/7/679e4c61bb4ef23472da0768f793ab4e991bc0ce.png)

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [July 31, 2021, 6:21am UTC](https://forum.bubble.io/t/terminating-animations/162446/4 "2021-07-31T06:21:23Z")

</div>

Interesting challenge. Could it have something to do with the order of operations? Meaning, the animations are started, you click the skip button, but that doesn’t matter because the animations are already go-for-launch.

---

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 31, 2021, 2:07pm UTC](https://forum.bubble.io/t/terminating-animations/162446/5 "2021-07-31T14:07:13Z")

</div>

This is what I was thinking but there is no indication that animations are treated differently regarding order of operations. For example, I am successfully managing to trigger a “Show” action on one of the elements that are animated, which means that the workflow to set “Button Clicked” to yes IS happening in the middle of the animations… BUT, the animations just continue to happen anyway.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [July 31, 2021, 4:00pm UTC](https://forum.bubble.io/t/terminating-animations/162446/6 "2021-07-31T16:00:30Z")

</div>

Order of operations doesn’t really make any difference…Bubble will trigger the actions in order but they are run sequentially…and just because it is triggered before another action, doesn’t mean it is ‘executed’ before the next action is triggered…so if action 1 takes 3 seconds to complete you could very well have actions 2, 3 and 4 triggered and executing at the same time.

Put a pause in front of the terminate action and see if that works.

If it doesn’t test things out and build up. To start that process see if a simple action of terminate workflow works with only a single custom event instead of the entire sequence…also test if it works with debug\_mode off (remove from URL debug\_mode parameter).

Also, what is your ultimate goal…if you can demonstrate with an example video or something, there may very well be a more efficient way to accomplish it.

---

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 31, 2021, 5:16pm UTC](https://forum.bubble.io/t/terminating-animations/162446/7 "2021-07-31T17:16:18Z")

</div>

Hi!

Here is a test example:

[My Page (bubbleapps.io)](https://messagetest123456789.bubbleapps.io/version-test/animation_halt?debug_mode=true)

I am not sure how to share the editor… never done that before but will add the link once I figure it out.

EDIT: Here is the editor

[Messagetest123456789 | Bubble Editor](https://bubble.io/page?type=page&name=animation_halt&id=messagetest123456789&tab=tabs-1)

To answer your question, the goal is to terminate the animation workflow and just show all of the elements. It’s essentially a “Skip” button for those who don’t want to watch the intro animation for the homepage.

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [July 31, 2021, 8:29pm UTC](https://forum.bubble.io/t/terminating-animations/162446/8 "2021-07-31T20:29:29Z")

</div>

One idea would be to put a breakpoint at this action.

 ![CleanShot 2021-07-31 at 22.19.35@2x](https://us1.discourse-cdn.com/bubble/original/3X/b/a/ba3ca55c728c821b0996442f9fd3f0130ea69b96.jpeg)

I’ve got a hunch that whenever you press the button, it actually adds that action to the back of the line. The line at this point consists of all workflows and actions triggered on the `Page is loaded` workflow.

What might solve it is to have each workflow trigger the next workflow - instead of the `Page is loaded` trigger all of them. My hunch is that in this manner the set state action will actually happen in between the animations.

It might be helpful - visually - to have the clicked stated shown somewhere on the page at all times. It might help you in troubleshooting this.

---

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 31, 2021, 8:30pm UTC](https://forum.bubble.io/t/terminating-animations/162446/9 "2021-07-31T20:30:50Z")

</div>

I tried the waterfall method of each custom event triggering the next but it didn’t change anything. I will change it in the editor and see if the breakpoint helps too! thank you !

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [July 31, 2021, 8:38pm UTC](https://forum.bubble.io/t/terminating-animations/162446/10 "2021-07-31T20:38:25Z")

</div>

Yep, I think it gets added to the back of the line.

![2021-07-31 22.37.16](https://us1.discourse-cdn.com/bubble/original/3X/3/f/3fbd4a9475ca1995bd2389e60a89e5df6f6b8b6f.gif)

---

<div class="post-metadata">

**Author:** ![gbenchanoch](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbenchanoch/32/105761_2.png) [@gbenchanoch](https://forum.bubble.io/u/gbenchanoch)\
**Post date:** [July 31, 2021, 9:27pm UTC](https://forum.bubble.io/t/terminating-animations/162446/11 "2021-07-31T21:27:20Z")

</div>

If you turn off debug mode it’ll actually run the button’s work flow but it will continue to run the previous workflow.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 13, 2021, 5:53pm UTC](https://forum.bubble.io/t/terminating-animations/162446/12 "2021-08-13T17:53:50Z")

</div>

Closed on August 13, 2021, 5:53pm UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.
