POST BOX
<div class="animated-border">
<button class="btn" href="https://wa.me/91999999999">LIVE PREVIEW </button>
</div>
CSS PASTE
.animated-border {
width: 300px;
height: 70px;
box-shadow: 0 4px 40px -16px rgba(0, 0, 0, 0.2);
border-radius: 24px;
overflow: hidden;
position: relative;
}
.animated-border .btn {
width: 95%;
height: 86%;
background: #fff;
border-radius: 24px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: grid;
place-items: center;
font-family: "Roboto Black", sans-serif;
font-size: 24px;
border: none;
}
.animated-border::after {
content: "";
height: 500px;
width: 500px;
position: absolute;
background: conic-gradient(red, yellow, blue, red);
z-index: -1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotateZ(0deg);
animation: spin 8s infinite linear;
}
@keyframes spin {
100% {
transform: translate(-50%, -50%) rotateZ(360deg);
}
}
