@gary - the javascript: in your code is not needed; you are between script tags.
My approach is just CSS - no jQuery so a quicker and smaller payload.
All elements on the page/layer that need to fade away are Named: htmlclass="popupAndFade"
I add my CSS to the Website Code (head):
<style>
.popupAndFade {
animation: fadeAnimation ease 10s;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}
@keyframes fadeAnimation {
0% {
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
opacity: 0;
}
}
</style>
Acorn
Bookmarks