Let's say I have a full image div
that fadeouts when the user enters to the site on homepage.
I want to hide that full image animation if the user enters to any section (bio, gallery) and comes back to home.
I tried using a cookie like this:
if (jQuery.cookie('hasVisited')) {
} else {
jQuery.cookie('hasVisitied', 'true');
jQuery('#home-image').hide();
}
But the problem is that this hides the image
for always if the user enters to the page again, Not just to any section.
How can I point to hide the #home-image
if the user come from subpages of the website.
Let me know if i'm not clear with the question!
This would be the events:
- User visits website and there is a
full screen image
fadeout animation on home - He enters to
biography
section and then comes back tohomepage
without having to see thefull screen image
animation. - Hours later he decides to visit the website again and on homepage he sees the
full screen image
fadeout animation.