Forum Discussion

CandaceGroff-8a's avatar
CandaceGroff-8a
Community Member
3 days ago

Pulse all buttons until clicked - Storyline

I would love an easy way to make all buttons in my course pulse until they are clicked. I've currently set them to "Pulse when animation completes Pulse, IF... state or trigger" but it's tedious to do for each individual button and setting up triggers. Is there an easy way for all buttons to pulse all the time until clicked? 

1 Reply

  • Hello CandaceGroff-8a​

    I figured that the best way to target ALL the buttons in your module is for them to ALL share the same alt text. That way, a JavaScript code that applies an animation (pulsation) to one element targeted by its alt text would do so to ALL elements.

    As you can see in the attached .story file, the targeted elements can be anything (your buttons): a shape, an image, a text area, etc. All you need to do is give them the same alt text.

    The ONLY trigger is on the master slide mask.


    ChatGPT helped me a lot in writing this code. In addition, extra lines allow you to interrupt the animation when the element is clicked, without preventing the click from producing anything else: a change in the element's state, the display of a layer, the go to the next screen, etc.
    The code is easy to modify to change the animation, and it is commented.


    Depending on your needs, there are still some adjustments to be made: for example, if you want to allow users to return to a screen they have already viewed.
    I hope this meets your needs. I'd be happy to hear from you. 🙂