138 lines
3 KiB
SCSS
138 lines
3 KiB
SCSS
.start-section {
|
|
background-color: #222;
|
|
min-height: calc(100vh - 80px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: calc(10px + 2vmin);
|
|
color: white;
|
|
overflow: visible;
|
|
position: relative;
|
|
padding: 40px 20px;
|
|
margin-bottom: 150px;
|
|
overflow: hidden;
|
|
|
|
.glow-container {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
z-index: 4;
|
|
position: fixed;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.glow {
|
|
--size: 300px;
|
|
--speed: 50s;
|
|
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
|
|
|
|
width: var(--size);
|
|
height: var(--size);
|
|
filter: blur(calc(var(--size) / 5));
|
|
background-image: linear-gradient(hsl(222, 84, 60, 100%), hsl(164, 79, 71));
|
|
animation: rotate var(--speed) var(--easing) alternate infinite;
|
|
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
|
|
|
|
@media (min-width: 720px) {
|
|
--size: 600px;
|
|
|
|
}
|
|
}
|
|
|
|
.logo {
|
|
z-index: 5;
|
|
}
|
|
|
|
p {
|
|
font-size: 24px;
|
|
z-index: 5;
|
|
text-align: center;
|
|
font-family: 'Jersey-Regular';
|
|
margin-top: 15px;
|
|
}
|
|
|
|
$base: 0.6rem;
|
|
|
|
.arrow {
|
|
z-index: 5;
|
|
position: absolute;
|
|
bottom: 50px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width:100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.chevron {
|
|
position: absolute;
|
|
width: $base * 3.5;
|
|
height: $base * 0.8;
|
|
opacity: 0;
|
|
transform: scale(0.3);
|
|
animation: move-chevron 3s ease-out infinite, glowing 3s reverse infinite ease-in-out;
|
|
}
|
|
|
|
.chevron:first-child {
|
|
animation: move-chevron 3s ease-out 1s infinite, glowing 3s reverse infinite 1s ease-in-out;
|
|
}
|
|
|
|
.chevron:nth-child(2) {
|
|
animation: move-chevron 3s ease-out 2s infinite, glowing 3s reverse infinite 2s ease-in-out;
|
|
}
|
|
|
|
.chevron:before,
|
|
.chevron:after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 50%;
|
|
background: rgba(0, 128, 189,0.5);
|
|
}
|
|
|
|
.chevron:before {
|
|
left: 0;
|
|
transform: skewY(30deg);
|
|
}
|
|
|
|
.chevron:after {
|
|
right: 0;
|
|
width: 50%;
|
|
transform: skewY(-30deg);
|
|
}
|
|
|
|
@keyframes move-chevron {
|
|
25% {
|
|
opacity: 1;
|
|
}
|
|
33.3% {
|
|
opacity: 1;
|
|
transform: translateY($base * 3.8);
|
|
}
|
|
66.6% {
|
|
opacity: 1;
|
|
transform: translateY($base * 5.2);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes glowing {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
filter: drop-shadow(0 0 0 #ffffff) drop-shadow(0 0 1px #ffffff)
|
|
drop-shadow(0 0 2px rgba(0, 128, 189,0.5)) drop-shadow(0 0 3px rgba(0, 128, 189,0.5))
|
|
drop-shadow(0 0 4px rgba(0, 128, 189,0.5)) drop-shadow(0 0 5px rgba(0, 128, 189,0.5));
|
|
}
|
|
}
|
|
|