add animated title and toggle functionality for improved visual effect

This commit is contained in:
arussac
2025-03-31 09:59:49 +02:00
parent d439befc44
commit 9e3d06cada
3 changed files with 101 additions and 5 deletions

View File

@@ -353,9 +353,78 @@ footer {
.form-header {
display: flex;
justify-content: right; /* Aligns items with space between them */
;
}
#close-form-button-project, #close-form-button-{
width: 35px;
}
.container-title {
text-align: center;
}
.container-title #xyz {
left: 25vw;
font-family: 'Cabin Condensed', sans-serif;
position: relative;
white-space: nowrap;
font-size: 10vh;
max-width: 40vw;
font-weight: bold;
overflow: hidden;
color: #f6f6f6;
animation: textreveal 4s infinite alternate;
}
.container-title #ball {
top: 14vh;
position: absolute;
height: 20vh;
width: 10vw;
white-space: nowrap;
overflow: hidden;
background-color: #f57724;
border-radius: 50%;
animation: ballmove 4s infinite alternate;
z-index: 1;
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.3);
}
@keyframes ballmove {
0% {
transform: translate(25vw, 5vh) scale(0.1);
}
10% {
transform: translateX(25vw) scale(0.5);
}
40% {
transform: translateX(65vw) scale(0.5);
}
60% {
transform: translate(61vw, 5vh) scale(0.1);
}
70% {
transform: translate(61vw, 5vh) scale(0.15);
}
80% {
transform: translate(61vw, 5vh) scale(0.1);
}
90% {
transform: translate(61vw, 5vh) scale(0.15);
}
100% {
transform: translate(61vw, 5vh) scale(0.1);
}
}
@keyframes textreveal {
0% {
width: 0;
}
10% {
width: 0;
}
40% {
width: 40vw;
}
100% {
width: 40vw;
}
}