speakkit/public/assets/scss/elements/_backtotop.scss
2024-12-10 10:57:24 +05:30

106 lines
2.2 KiB
SCSS

/*-------------------------
Back To Top
---------------------------*/
@-webkit-keyframes border-transform {
0%,
100% {
border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}
14% {
border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
}
28% {
border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
}
42% {
border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
}
56% {
border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
}
70% {
border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
}
84% {
border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
}
}
.paginacontainer {
height: 3000px;
}
.rn-progress-parent {
position: fixed;
right: 30px;
bottom: 30px;
height: 46px;
width: 46px;
cursor: pointer;
display: block;
border-radius: 50px;
box-shadow: inset 0 0 0 2px rgba(255, 71, 87, .2);
z-index: 10000;
opacity: 0;
visibility: hidden;
transform: translateY(15px);
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
&.rn-backto-top-active {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
&::after {
position: absolute;
font-family: 'remixicon' !important;
content: "\ea78";
text-align: center;
line-height: 46px;
font-size: 24px;
color: var(--color-secondary);
left: 0;
top: 0;
height: 46px;
width: 46px;
cursor: pointer;
display: block;
z-index: 2;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
}
&:hover {
&::after {
color: var(--color-secondary);
}
}
&:hover {
&::before {
opacity: 1;
}
}
svg {
path {
fill: none;
}
&.rn-back-circle {
path {
stroke: var(--color-secondary);
stroke-width: 4;
box-sizing: border-box;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
}
}
}
}