I've created a unique HTML/CSS marquee that pulls overlays from a website through iframes and scrolls through them. However, I'm experiencing some strange behavior on the page.
Upon initial page load and passive viewing, only the first overlay is displayed. It scrolls in as expected, exits, and then there's nothing until the animation cycles back - showing the first overlay again.
However, if I interact with the page by clicking/moving the mouse within it, each iframe loads sequentially, with each one scrolling in and out as intended.
If I interact briefly and then stop, the original issue resurfaces, but this time the last loaded iframe is the one that repeats instead of the initial one.
"Interacting" refers to having the page focused and engaging with any clickable or hoverable elements on the page.
Below is the code snippet. Please disregard the "display" statements in the animations which were added for experimentation purposes.
<html>
<head>
<style>
// CSS animations for displaying iframes and scrolling effects
</style>
</head>
<body>
<div class="marquee">
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/347710c7-d003-47ec-8c56-29269060692c"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/687c5759-99f1-4f40-95c3-377cfb1751be"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/b8efb59c-02ae-4edf-9c9d-50a6d1643064"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/80fc2dab-f197-452e-827d-36aafdeca87d"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/76576b68-97aa-42a5-a5e4-45574ab0d3e9"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/fe174a33-4b60-4bcd-aed6-3188dbf1d432"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/7c1a3a59-7540-4c15-a5b4-24d19dbd5880"></iframe>
<iframe class="marquee" src="https://tracker.gg/overlays/overlay/ebc95461-8851-4576-a8bf-0f8aec7c9d46"></iframe>
<iframe class="marquee" src=""></iframe>
<iframe class="marquee" src=""></iframe>
</div>
</body>
</html>