71 lines
1.3 KiB
CSS
71 lines
1.3 KiB
CSS
@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");
|
|
*, *::before, *::after {
|
|
padding: 0;
|
|
margin: 0 auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.content {
|
|
width: 95%;
|
|
max-width: 40ch;
|
|
padding: 3em 1em;
|
|
}
|
|
|
|
.marquee {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 2em;
|
|
font-size: 5em;
|
|
display: grid;
|
|
place-items: center;
|
|
overflow: hidden;
|
|
}
|
|
.marquee_text {
|
|
position: absolute;
|
|
min-width: 100%;
|
|
text-shadow: 0px 0px 5px #000;
|
|
white-space: nowrap;
|
|
-webkit-animation: marquee 16s infinite linear;
|
|
animation: marquee 16s infinite linear;
|
|
}
|
|
@-webkit-keyframes marquee {
|
|
from {
|
|
translate: 70%;
|
|
}
|
|
to {
|
|
translate: -70%;
|
|
}
|
|
}
|
|
@keyframes marquee {
|
|
from {
|
|
translate: 70%;
|
|
}
|
|
to {
|
|
translate: -70%;
|
|
}
|
|
}
|
|
.marquee_blur {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background-color: white;
|
|
background-image: linear-gradient(to right, black, 1rem, transparent 50%), linear-gradient(to left, black, 1rem, transparent 50%);
|
|
filter: contrast(15);
|
|
}
|
|
.marquee_blur p {
|
|
filter: blur(0.07em);
|
|
}
|
|
.marquee_clear {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.text {
|
|
margin-block: 2em;
|
|
text-shadow: 0px 0px 30px #000;
|
|
color: #000;
|
|
opacity: 0.3;
|
|
}
|