mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-29 12:52:08 +01:00
Refactor SectionScroll.scss to improve arrow animation and responsiveness
This commit is contained in:
@@ -6,23 +6,10 @@
|
|||||||
|
|
||||||
div {
|
div {
|
||||||
.arrow {
|
.arrow {
|
||||||
&.up {
|
&:hover {
|
||||||
&:hover {
|
animation: pulse 1s infinite;
|
||||||
animation: pulse 1s 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
&:hover {
|
|
||||||
animation: pulse 1s infinite;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.down {
|
|
||||||
&:hover {
|
|
||||||
animation: pulse 1s 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--color-accent);
|
color: var(--color-accent);
|
||||||
}
|
}
|
||||||
@@ -40,4 +27,17 @@
|
|||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
div {
|
||||||
|
.arrow {
|
||||||
|
margin: 15px 0;
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
&:hover {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user