scroll verbessert + span

This commit is contained in:
camill 2025-12-01 19:57:28 +01:00
parent b20b77e8a6
commit ae2a051b96

View File

@ -9,34 +9,44 @@
align-content: center; align-content: center;
background-color: black; background-color: black;
color: white; color: white;
overflow: hidden;
font-weight: bold;
font-size: 350%;
}
span{
color: goldenrod;
} }
.plane { .plane {
/* Für möglichst symmetrisch, muss left proportional zu width sein*/
height: 50vw;
width: 60vw;
bottom: 0;
left: 20vw;
/*Erstellt eine Ebene mit einem Neigungsgrad von 20*/
transform: perspective(250px) rotateX(20deg); transform: perspective(250px) rotateX(20deg);
transform-origin: 50% 100%; transform-origin: 50% 100%;
text-align: center; text-align: center;
position: absolute; position: absolute;
font-weight: bold;
overflow: hidden;
font-size: 350%;
height: 50vw;
width: 50vw;
bottom: 0;
left: 0;
} }
.plane:after .plane:after
{ {
position: absolute;
content: ' ';
bottom: 60%; bottom: 60%;
left: 0; left: 0;
right: 0; right: 0;
top: 0; top: 0;
content: ' ';
position: absolute;
} }
.content .content
{ {
/* 60 Sekunden Animation, die in 3 Sekunden eingeblendet wird */
animation: scroll 60s linear 3s; animation: scroll 60s linear 3s;
position: absolute; position: absolute;
top: 100%; top: 100%;
@ -48,7 +58,7 @@
} }
100% { 100% {
top: -170%; top: -150%;
} }
} }