You can make the hiding calculation of the object depend on a global script variable, i.e. $$HideObject01.
Change the value of this variable in a script. You will probably have to refresh the window.
If the script isn't gong to be running constantly, you can use Install On Timer Script to set up the object visibility updating script.
Instead of refreshing the window, I'd refresh the layout objects using refresh object. That seems to have slightly better performance.
Be aware that while the script is running you may be blocking the user from doing other things, thus a timer as has been suggested is likely a better option than a looping script.
You might also see if an animated gif in a web viewer might be a better option if you can get that to work. Saw a really good demo of that several versions ago.
You might also see if an animated gif in a web viewer might be a better option if you can get that to work.
If the hide/unhide content lends itself to being displayed in a WebViewer, you have many more options on animating and displaying.
Of course you won't have a window flash if you refresh the object rather than the window....