mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-28 20:32:19 +01:00
Refactor SectionScroll.scss to improve arrow animation and responsiveness
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user