JSFiddle - React, Tailwind, and code Playground
by twobomb three
HTML
<div class="container">
<div class="callback__button">CALL NOW</div>
</div>
CSS
.container {
text-align:center;
}
.callback__button {
display: inline-flex;
border: 5px solid #ffffff;
background-color: #0368ea;
padding: 11px 67px;
font-weight: 700;
color: #ffffff;
position:relative;
}
.callback__button:before {content:'';position: absolute;width: 58px;height: 36px;background: url(https://i.ibb.co/HPM00FD/arrow.png) no-repeat center center;left: -93px;top: 5px;
animation: 0.3s linear 0s infinite alternate movel;}
.callback__button:after {
content:'';position: absolute;width: 58px;height: 36px;background: url(https://i.ibb.co/HPM00FD/arrow.png) no-repeat center center;right: -93px;top: 5px;transform: rotate(180deg);
animation: 0.3s linear 0s infinite alternate mover;
}
.callback__button:hover{
cursor: pointer;
}
@keyframes movel { from { margin-left:-5%; } to { margin-left:10%; } }
@keyframes mover { from { margin-right:-5%; } to { margin-right:10%; } }