hey, i wrote this code, the problem is that i only want it’s border to have that color gradient and the background should be black, but when i set the background as black and not transparent it just show black background not the border.
.sign-in-buttons {
display: flex;
gap: 1rem;
align-items: center;
justify-content: center;
padding: 1rem;
}
.sign-in {
background-color: transparent;
position: relative;
padding: 15px 30px;
color: white;
cursor: pointer;
border: none;
border-radius: 50px;
font-size: 16px;
overflow: hidden;
}
.sign-in::before {
content: '';
position: absolute;
top: -5px;
bottom: -5px;
left: -5px;
right: -5px;
background: linear-gradient(90deg, #9a4eff, #ce63ff);
z-index: -1;
border-radius: 50px;
transition: transform 0.3s ease;
transform-origin: left;
transform: scaleX(1);
}
.sign-in::after {
content: '';
position: absolute;
top: -5px;
bottom: -5px;
left: -5px;
right: -5px;
background: linear-gradient(90deg, #9a4eff, #ce63ff);
z-index: -1;
border-radius: 50px;
transition: transform 0.3s ease;
transform: scaleX(0);
transform-origin: left;
}
.sign-in:hover::after {
transform: scaleX(1);
}