<section>
<div class="btn btn__17">
<a href="#">1-17.キラリと光る線が出てくる</a>
</div>
</section>
section{
display: flex;
margin:2rem;
justify-content: center;
align-items: center;
}
.btn a {
display: inline-block;
text-decoration: none;
border: 2px solid #333;
color: #333;
padding: .7rem 1.5rem;
transition: .2s;
}
.btn.btn__17 a {
color: #fff;
overflow: hidden;
position: relative;
transition: .3s;
background-color: #2382e5;
border: 2px solid #2382e5;
}
.btn.btn__17 a:before {
content: '';
position: absolute;
top: 0;
left: 0;
margin: auto;
width: 100%;
height: 100%;
background-color: #fff;
transition: .4s;
transform: rotate(-25deg) translate(-100%, -100%);
transform-origin: left center;
}
.btn.btn__17 a:hover:before {
left: 200%;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.