Pressed Button Swap Out Graphic

I’d like to have more control graphically on the pressed button state. Basically swap out a custom highlight graphic when pressed.
-Dale

you may use a javascript-function:
element.style.backgroundImage = "url('pathToYourImage')";

events would be click or mouseover …

If you Precache the image Hans solution should work instantly! Else you would get a slight delay on loading. If size isn’t a big concern you can also base encode an image and assign it with @h_classen method. If you feel like diving into advanced JS, you can build your own web worker to cache images.

If you are looking for a non-javascript solution, you can make a separate timeline that has an animation to change the background image. Just hit record, advance the playhead, and then hit “choose” in the background image section. Then you can use actions to trigger this other timeline.

1 Like

Thank you all for the feedback. I’m experimenting with those right now.

Cheers!

-Dale

1 Like