Flip switches animated

Just curious, is it possible somehow to have a flip switch picture (or a series of pictures) that is animated?
So, when you press the screen to turn on/off, it flips over.

Not exactly sure what you mean, but you can use video files and animated gif images in gauges.

What I mean is that you have a button defined with an action behind of course and it looks like a flip switch (somethinkg like this: https://www.google.com/url?sa=i&url=https%3A%2F%2Fdepositphotos.com%2F48330923%2Fstock-photo-digitally-generated-metal-flip-switch.html&psig=AOvVaw11ocoX6ysWABCJHUJz-MNn&ust=1676048234247000&source=images&cd=vfe&ved=0CA8QjRxqFwoTCLCTkq_0iP0CFQAAAAAdAAAAABAL
And when you press the button/switch on the screen, it executes the action that is specified and also it visually changes state, so if it was down, then it flips up or the other way around and that visual state change is animated.

Just switching between two images is easy, set the gauge background image different on normal and warning/critical levels.

To have an actual animation (multiple frames) is possible with animated GIF or a video file, but it requires more handling of triggers and actions for hiding previous animation etc.