Updated PRD banner with an animated slowly moving strip
This commit is contained in:
parent
d90c9cda4a
commit
0e519c839e
@ -1,17 +1,28 @@
|
|||||||
@-moz-document domain("stream.alkemics.com") {
|
@-moz-document domain("stream.alkemics.com") {
|
||||||
.Navbar {
|
:root {
|
||||||
animation-duration: 3s;
|
--stripe-size: 100px;
|
||||||
animation-name: slidein;
|
--color1: #005564;
|
||||||
animation-iteration-count: infinite;
|
--color2: rgb(0, 0, 0);
|
||||||
animation-direction: alternate;
|
--duration: 10s;
|
||||||
}
|
}
|
||||||
@keyframes slidein {
|
.Navbar::before {
|
||||||
from {
|
z-index: -10;
|
||||||
background-color: black;
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: calc(-1 * var(--stripe-size));
|
||||||
|
width: calc(100% + var(--stripe-size));
|
||||||
|
height: 100%;
|
||||||
|
background: repeating-linear-gradient(45deg, var(--color2) 25%, var(--color2) 50%, var(--color1) 50%, var(--color1) 75%);
|
||||||
|
background-size: var(--stripe-size) var(--stripe-size);
|
||||||
|
animation: stripeTransform var(--duration) linear infinite;
|
||||||
|
}
|
||||||
|
@keyframes stripeTransform {
|
||||||
|
0% {
|
||||||
|
transform: translateX(0);
|
||||||
}
|
}
|
||||||
|
100% {
|
||||||
to {
|
transform: translateX(calc(var(--stripe-size) * 1));
|
||||||
background-color: rgb(30, 180, 155);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user