Play animation only once

Is there a way to play a “Page Load” animation only once? Meaning, if someone visits “Home”, it plays the animation, then they go to “About” and come back to “Home”, the animation doesn’t play. Hope this makes sense.

Will second this. I have a pop up form that should show to new vistors on home page. Doesn’t make much sense if they fill it out, then close it. Then navigate to shop, then back to home page just to see that form again

I feel like this could be done with a javascript and session storage… Can anyone chime in?