37 lines
606 B
SCSS
37 lines
606 B
SCSS
.back_to_top {
|
|
width: 50px;
|
|
height: 50px;
|
|
// border-radius: 50%;
|
|
position: fixed;
|
|
background-color: var(--thirdly) !important;
|
|
color: var(--white);
|
|
bottom: 30px;
|
|
right: 20px;
|
|
padding: 10px;
|
|
opacity: 0;
|
|
transition:
|
|
opacity 0.5s,
|
|
transform;
|
|
transform: translateY(100%);
|
|
transition: all 0.3s ease-in-out;
|
|
border: none;
|
|
z-index: 9999 !important;
|
|
svg {
|
|
font-size: 26px;
|
|
color: var(--white);
|
|
}
|
|
&:hover {
|
|
scale: 1.05;
|
|
}
|
|
}
|
|
|
|
.back_to_top.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.back_to_top.hide {
|
|
opacity: 0;
|
|
transform: translateY(100%);
|
|
}
|