<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!
.btn {
margin: 5px 0;
position: relative;
padding: 1.5rem 5rem 1.5rem 2rem;
background-color: #543618;
color: #fff;
display: inline-block;
text-align: center;
border: 1px solid #543618;
text-decoration: none;
transition: all .3s;
border-radius: 4px;
&:after {
content: "";
position: absolute;
top: 50%;
bottom: 0;
right: 2rem;
font-size: 90%;
display: flex;
justify-content: center;
align-items: center;
transition: right .3s;
width: 6px;
height: 6px;
border-top: solid 2px currentColor;
border-right: solid 2px currentColor;
transform: translateY(-50%) rotate(45deg);
}
&:hover {
background: #fff;
color: #543618;
&:after {
right: 1.4rem;
}
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.