<section>
<div class="btn btn__04">
<a href="#">1-4.左上から円が広がる</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__04 a {
overflow: hidden;
position: relative;
transition: .3s;
}
.btn.btn__04 a:before {
content: '';
position: absolute;
top: 0;
left: 0;
margin: auto;
width: 100px;
height: 100px;
background-color: #2382e5;
border-radius: 50%;
z-index: -1;
transform: scale(0) translate(-50%, -50%);
transform-origin: left top;
transition: .3s;
}
.btn.btn__04 a:hover {
transition: .3s;
color: white;
}
.btn.btn__04 a:hover:before {
transition: .6s;
transform: scale(10) translate(-50%, -50%);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.