<a href="">Button</a>
body
{
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: #04A04F;
}
a
{
position: relative;
padding: 20px 20px 20px 30px;
color: #fff;
font-size: 20px;
font-family: sans-serif;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 10px;
transition: 0.5s;
}
a:hover
{
background: #04A04F;
transition-delay: .5s;
transform: rotate(-30deg) skew(25deg);
box-shadow: -30px 30px 50px rgba(0,0,0,.4);
}
a:before,
a:after
{
content: '';
position: absolute;
width: 2px;
height: 100%;
background: #fff;
pointer-events: none;
transform-style: linear;
transition-property: width, opacity,transform,box-shadow;
transition-duration: 0.5s;
}
a:before
{
top: 0;
left: 0;
}
a:after
{
top: 0;
right: 0;
}
a:hover:before
{
width:100%;
opacity:0.1 ;
transform: translate(5px,-5px);
box-shadow: 2px 2px 2px rgba(0,0,0,.1);
transition-delay: 0s,0.5s,1s,1.5s;
}
a:hover:after
{
width:100%;
opacity:0.1 ;
transform: translate(10px,-10px);
box-shadow: 2px 2px 2px rgba(0,0,0,.1);
transition-delay: 0s,0.5s,1s,1.5s;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.