Skip to main content
Solved

Is there any way to set count for the number of triggers for a delay animation?

  • December 2, 2022
  • 5 replies
  • 653 views

pkp

I am making an animation which will trigger after 2 seconds and won’t trigger again. I am using the ‘After Delay’ to do this but the problem is that it triggers every 2 seconds. How can I stop the animation after triggering once. Is there any way to set the number of counts that an animation should trigger. Also won’t this be a good feature to have

Best answer by dennsi

It is normal behaviour since you switch the Bubble components “Current” state back to “Normal” state after a delay. This triggers the intial delay based “change to” animation again.

If you want to just display the state and color change once you’ll need a third variant in the Bubble component (you can call it “Last” for example). This is basically a duplicate of the first state but without any animation. Switch the change to from “Current” to “Last” instead of “Normal”.

See test document:
https://www.figma.com/file/HjMEdjy2wQzQ8o7BID4NVT/Trigger-animation-once-(Copy)?node-id=0%3A1&t=LXNNhYSlVwDD8UWU-1

Prototype:

View original
This topic has been closed for comments

5 replies

dennsi
  • Active Member
  • 256 replies
  • December 2, 2022

Can you provide a test file to look into?


pkp
  • Author
  • 29 replies
  • December 2, 2022

Test file added


dennsi
  • Active Member
  • 256 replies
  • Answer
  • December 2, 2022

It is normal behaviour since you switch the Bubble components “Current” state back to “Normal” state after a delay. This triggers the intial delay based “change to” animation again.

If you want to just display the state and color change once you’ll need a third variant in the Bubble component (you can call it “Last” for example). This is basically a duplicate of the first state but without any animation. Switch the change to from “Current” to “Last” instead of “Normal”.

See test document:
https://www.figma.com/file/HjMEdjy2wQzQ8o7BID4NVT/Trigger-animation-once-(Copy)?node-id=0%3A1&t=LXNNhYSlVwDD8UWU-1

Prototype:


pkp
  • Author
  • 29 replies
  • December 2, 2022

This is so true. Why didn’t I ever think of that. Thanks a lot for the quick solution.


dennsi
  • Active Member
  • 256 replies
  • December 2, 2022

No problem youre welcome 😁


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings