38 lines
641 B
SCSS
38 lines
641 B
SCSS
.arrow {
|
|
position: absolute;
|
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrow span {
|
|
display: block;
|
|
width: 1.5vw;
|
|
height: 1.5vw;
|
|
border-bottom: 5px solid white;
|
|
border-right: 5px solid white;
|
|
transform: rotate(45deg);
|
|
margin: -10px;
|
|
animation: animate 2s infinite;
|
|
}
|
|
|
|
.arrow span:nth-child(2) {
|
|
animation-delay: -0.2s;
|
|
}
|
|
|
|
.arrow span:nth-child(3) {
|
|
animation-delay: -0.4s;
|
|
}
|
|
|
|
@keyframes animate {
|
|
0% {
|
|
opacity: 0;
|
|
transform: rotate(45deg) translate(-20px, -20px);
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: rotate(45deg) translate(20px, 20px);
|
|
}
|
|
}
|