Forum Discussion
marker pulsing
I am digging the markers pulsing. But can we stop them from pulsing after clicking? When I looked at states, the option for maker animate is greyed out on anything but normal.
- PhilMayorSuper Hero
No is the simple answer.
By doing a bit of work you can hide one marker with pulse and show one without
- HVfb0f498d-053bCommunity Member
I've tried that, it can work by adjusting the hidden states using triggers but the initial on click won't automatically expand the marker body text of the second duplicate marker.
- RonPricePartner
It is not ideal, but you can get something close using the Emphasis animation
- NedimCommunity Member
You can achieve this effect using JavaScript. Essentially, you need to remove the animation element associated with each marker when it's clicked. This can be done by adding an event listener to each marker that targets its nested animation element and removes it.
- KatherineBen415Community Member
And what's the Javascript you used?
- NedimCommunity Member
I’ve attached the .story file that I used in my presentation. You can find the JavaScript code within the Execute JavaScript trigger. Let me know if you need any further explanation or clarification.
- philipnyk65Community Member
The pulsing markers are a cool effect, but it would be great to have the option to stop them after clicking. Since the "animate" option is greyed out, it seems like there's no easy way to disable it in the current setup.😀