Refactor SectionScroll.scss to improve arrow animation and responsiveness

This commit is contained in:
dertyp7
2024-01-14 15:03:21 +01:00
parent 411700b9fd
commit 0f1bb40af4

View File

@@ -6,23 +6,10 @@
div {
.arrow {
&.up {
&:hover {
animation: pulse 1s 2;
}
@media screen and (min-width: 768px) {
&:hover {
animation: pulse 1s infinite;
}
}
&:hover {
animation: pulse 1s infinite;
}
&.down {
&:hover {
animation: pulse 1s 2;
}
}
&:hover {
color: var(--color-accent);
}
@@ -40,4 +27,17 @@
transform: scale(1);
}
}
@media screen and (max-width: 768px) {
div {
.arrow {
margin: 15px 0;
height: 40px;
width: 40px;
&:hover {
animation: none;
}
}
}
}
}