I would like to know if there is a relatively simple way to create an actionButton() within Shiny that can flicker or glow until clicked? Ideally, I would like to create it without introducing a whole slur of dependencies.
You're a lifesaver! Thank you so much . If you want to reset the actionButton() to not glow after click, do you need to completely recreate the actionButton or can you simply change the style to empty?
No that's not possible as far as I know. This solution I found online with shinyjs is already way simpler than other suggestions online of recreating buttons to update their css
I know this question is solved, but here's the version without shinyjs if anyone is interested.
This can be done by creating a css class glow using the animation property and applying the class glow inline. (I also added support for other browsers -webkit-...). The js function evaluates all of the css classes applied to myButton and determines if grow is present. If it is, then it is removed from this element.
@dcruvolo - Thanks so much for sharing this! I likely may use this setup just because of some uncertainty regarding shinyjs (specific to my setup and use case). It is also very helpful to see alternative implementations like this. Much appreciated