I have a small animation on the home page of a site. I want to show it during the first time the user visits the home page (not everytime they visit it again while browsing). If they close the window/tab, it should appear again on the next visit. Hope it makes sense!
I tried Kirby’s session, but I can’t find a way to make the duration last for a single site visit. I also tried the browser’s sessionStorage, but since JS must be executed, reading from it introduces a small delay from hiding the animation to showing the page.
Any ideas how to approach this?