February 10, 2022
Looping object effects
Comments
(6)
February 10, 2022
Looping object effects
Master 12 posts
Followers: 1 people
(6)

Hello!

I have a background image of a timer that has reached zero.

I would like this to flash between being there and not (as if it’s reached zero and is now flashing as an alert)

I’ve got a shape set to the same colour as the background placed over the timer and have applied a flicker effect.

Is there a way to loop an effect, or another way to achieve what i’m after? Capturing it as a video would be great, but isn’t an option in this case unfortunately.

Thanks in advance! 🙂

6 Comments
2022-02-15 10:32:58
2022-02-15 10:32:58

It can be done with the While loop as well, but you already have a solution.

Like
2022-02-14 20:41:19
2022-02-14 20:41:19

Greg Stager – Perfect! Thats absolutely awesome!

I did it without a button in the end, triggering the javascript to run on slide open then having var flash.setinterval straight afterwards!

Fairly new to conditional actions, but figured it straight out from what you said, so thanks! 🙂

Like
2022-02-14 15:05:05
2022-02-14 15:05:05

Here is the While Loop Advanced Action.

It is a two-part conditional action.

Part 1 checks a variable and toggles it

Part 2 will hide and show the zero as long as the variable is equal to 1.

Attachment

Like
(1)
2022-02-14 13:53:09
2022-02-14 13:53:09

Here is the code to go along with the visual.

 

Attachment

Like
(1)
(1)
>
Greg Stager
's comment
2022-02-14 13:57:32
2022-02-14 13:57:32
>
Greg Stager
's comment

Since I am using a start and stop button to illustrate the effect, I have a little extra code to disable the button so that the effect cannot be launched multiple times over itself. Once the interval has been stopped, the start button is enabled once again.

In your scenario – I imagine that the blinking does not start until the timer is done but you will still need to use the code to stop the blinking before another timer countdown is initiated.

Like
(1)
2022-02-14 13:51:52
2022-02-14 13:51:52

Personally – while you can achieve a similar result with some advanced actions using while and a delay –

I would tackle this with JavaScript.

In this example I use a button to start and stop the blinking effect.

Attachment

Like
(1)
Add Comment