JSFiddle - React, Tailwind, and code Playground
by Yonas Hailu
HTML
<div class="promo">
<a href="#" class="promo__button" data-module="modules/AnimatedArrowButton" data-contact-button>Tell me more
<span class="arrow"></span>
</a>
</div>
CSS
body {
font-family: "Helvetica Neue", sans-serif;
}
.promo {
color: #fff;
text-align: center;
}
.promo__button {
border: 1px solid #fff;
display: inline-block;
position: relative;
margin-top: 1.5em;
font-size: 24px;
padding: 20px 50px;
text-decoration: none;
text-transform: uppercase;
font-weight: 700;
line-height: 1;
letter-spacing: .025em;
text-align: center;
color: #fff;
background: #E21710;
position: relative;
}
.arrow {
position: absolute;
top: 50%;
width: 80px;
height: 1px;
background: #fff;
display: inline-block;
z-index: 0;
}
.arrow:after,
.arrow:before {
content: '';
position: absolute;
right: -3px;
display: block;
width: 20px;
height: 1px;
background: #fff;
z-index: 2;
}
.arrow:after {
top: 7px;
transform: rotate(-45deg);
}
.arrow:before {
transform: rotate(45deg);
top: -7px;
}
.promo__button:after {}