<a href="#" class="btn">Click Click Click!</a>
// reset & normalize
*{text-decoration:none;}
html{
font-size:62.5%; // 62.5% = 1rem = 10px
padding: 3rem;
color: #614f38;
}
body {
font-size:1.6rem;
}
// Start!
a.btn {
position: relative;
text-decoration: none;
transition: .15s ease-out;
-webkit-transform: translateZ(0);
display: inline-block;
box-sizing: border-box;
border: 1px solid;
border-radius: 3rem;
padding: 1.2rem 5rem 1.2rem 3rem;
color: inherit;
text-align: center;
line-height: 1;
box-shadow: 0 2px 0 #614f38;
text-decoration: none;
// arrow
&:before,
&:after {
position: absolute;
top: 0;
bottom: 0;
right: 0;
margin: auto;
content: "";
vertical-align: middle;
}
&:before {
right: 2rem;
width: .7rem;
height: 1px;
background: #614f38;
}
&:after {
right: 20px;
width: 6px;
height: 6px;
border-top: 1px solid #614f38;
border-right: 1px solid #614f38;
transform: rotate(45deg);
}
&:hover {
color:#fff;
background-color: #614f38;
transform: translateY(2px);
box-shadow: 0 0 0 rgba(245, 209, 0, 0.75);
opacity: 1;
&:before {
background-color: #fff;
}
&:after {
border-color: #fff;
}
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.