mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-29 04:42:08 +01:00
Refactor ScrollToTop.scss to add hover animation
This commit is contained in:
@@ -11,23 +11,33 @@
|
||||
transform: rotate(0deg);
|
||||
|
||||
&:hover {
|
||||
animation: pulseUp 1s infinite;
|
||||
animation: pulseUp 1s 2;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
&:hover {
|
||||
animation: pulseUp 1s infinite;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.down {
|
||||
transform: rotate(-180deg);
|
||||
|
||||
&:hover {
|
||||
animation: pulseDown 1s 2;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
position: fixed;
|
||||
bottom: 15px;
|
||||
right: 50%;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
animation: pulseDown 1s infinite;
|
||||
&:hover {
|
||||
animation: pulseDown 1s infinite;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user