There are several elements on the website that I create that are the same on every page, such as logo, menu, copyright notice, etc.
I want to fade them out as soon as the visitor loads any page of the website and never reproduces the effect of gradual change for any other pages that the visitor may come to.
I know that creating an AJAXy site will be one of the solutions, but for a certain number of reasons having separate pages, it would be preferable in this particular case.
Maybe there is a way to check the opacity of the element (from the previous page?) And if it is 100% keep it as it is, otherwise it will disappear into the element, but I'm not sure how to do it. Or, perhaps, if there is a way to check if a visitor arrives on a page with the same main domain name, in this case, the opacity of all the elements should be 100%, otherwise they should disappear?
I would be grateful for a practical solution!
Someone at StackOverflow wrote “just use cookies” in such a case, and the decision was made, but the actual cookie example was not provided, and it would be very useful if someone could do this.