mkcart / frontend /src /components /ScrollToTop.css
Kumar
updated
c2efbe6
.scroll-to-top-Premium {
position: fixed;
bottom: 30px;
left: 30px;
width: 60px;
height: 60px;
background: linear-gradient(135deg, #5b1818, #073f3c);
border: none;
border-radius: 50%;
cursor: pointer;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
overflow: hidden;
transition: all 0.3s ease;
}
.scroll-to-top-Premium:hover {
box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
transform: translateY(-3px);
}
.scroll-icon-container {
position: relative;
color: white;
z-index: 2;
}
.scroll-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}
.scroll-to-top-Premium:hover .scroll-glow {
opacity: 1;
}
.scroll-ripple {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
border-radius: 50%;
transform: scale(0);
animation: ripple 2s infinite;
}
@keyframes ripple {
0% {
transform: scale(0);
opacity: 1;
}
100% {
transform: scale(2);
opacity: 0;
}
}
@media (max-width: 768px) {
.scroll-to-top-Premium {
width: 50px;
height: 50px;
bottom: 20px;
left: 20px;
}
.scroll-icon-container svg {
width: 20px;
height: 20px;
}
}