diff --git a/css/style.css b/css/style.css index 7cce5c7..aca663a 100644 --- a/css/style.css +++ b/css/style.css @@ -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; + } } \ No newline at end of file diff --git a/index.html b/index.html index be7ba4d..d279eeb 100644 --- a/index.html +++ b/index.html @@ -39,8 +39,10 @@