i wrote this for myself based on some other css i've written, but it's just as useful for anybody else that hasn't modified the site's header. check out my own page to see it in action :)
nav {
overflow-x: hidden;
position: relative;
}
nav::before {
content: '';
position: absolute;
top: 0;
right: -88em;
bottom: 0;
left: 0;
display: block;
background: repeating-linear-gradient(
2rad,
#be3027, #be3027 10em,
#ed6d32 10em, #ed6d32 20em,
#f5c744 20em, #f5c744 30em,
#49a143 30em, #49a143 40em,
#194783 40em, #194783 50em,
#95337b 50em, #95337b 60em,
#0a0a06 60em, #0a0a06 70em,
#715142 70em, #715142 80em
);
pointer-events: none;
animation: 20s linear infinite rainbow-bg-anim;
z-index: -1;
}
nav .top {
background: transparent;
}
nav .links {
background: rgba(0, 0, 0, 0.3);
}
@keyframes rainbow-bg-anim {
to {
transform: translateX(-88em);
}
}
Comments
Displaying 4 of 4 comments ( View all | Add Comment )
Kathleen
Is this suppose to go in your layout code somewhere?
Report Comment
Sophiaaaahjkl;8901
THIS IS SO GOOD THANK YOU!!!!!!
Report Comment
SHADOW SIN
that's super cool!!!
Report Comment
Violation
I love it!!! Thank you!!!
Report Comment