Sweep Shine
Animated · .btn-sweep-shine
Text
Class name
Color hue
Radius · 12px
Size
.btn-sweep-shine {
position: relative;
overflow: hidden;
display: inline-block;
padding: 13px 28px;
border: none;
border-radius: 12px;
background: #4f46e5;
color: #ffffff;
font-family: inherit;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.btn-sweep-shine::before {
content: "";
position: absolute;
top: 0;
left: -80%;
width: 50%;
height: 100%;
background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.5), transparent);
transform: skewX(-25deg);
transition: left 0.55s ease;
}
.btn-sweep-shine:hover::before {
left: 130%;
}
.btn-sweep-shine:active {
background: #4338ca;
}