I’m having trouble with
a gallery with custom boxes that change everytime the gallery index changes, showing an “arc” animation.
Working in
Wix Studio Editor
Site link
What I’m trying to do
On the homepage of my website I have a gallery showing 5 pictures in rotation.
Every time the gallery index changes, I set a custom box to appear while the previous index’s one disappears.
When I change a broser tab, if my website’s tab is in the gallery, the gallery keeps changing index, and when I come back, I see multiple boxes on top of each other.
I set the gallery to pause onViewPortLeave and it works fine, but I see no code working when I’m in a different browser tab to either pause the gallery or set the boxes to disappear and when coming back to my website’s tab, to reappear.
Is there a way to do so?
What I’ve tried so far
I tried searching the Velo references, but got no results.
Extra context
I attach a screenshot showing 2 overlapped boxes.
