<button><span>Hover me!</span></button>
button {
border-radius: 4px;
background-color: #5ca1e1;
border: none;
color: #fff;
text-align: center;
font-size: 32px;
padding: 16px;
width: 220px;
transition: all 0.5s;
cursor: pointer;
margin: 36px;
box-shadow: 0 10px 20px -8px rgba(0, 0, 0,.7);
}
button{
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
button:after {
content: '»';
position: absolute;
opacity: 0;
top: 14px;
right: -20px;
transition: 0.5s;
}
button:hover{
padding-right: 24px;
padding-left:8px;
}
button:hover:after {
opacity: 1;
right: 10px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.