Is there a way to apply styles to an element upon or just before leaving that page and going to a different page?
For example, I have a fading out CSS3 Animation and I want to apply that right before a user leaves the current page to go to a different page in my site or to another page / site all together.

I appreciate and welcome all and any help or comments regarding this.