<section>
<div class="btn btn__05">
<a href="#">1-5.右下から円が広がる</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__05 a {
overflow: hidden;
position: relative;
transition: .3s;
}
.btn.btn__05 a:before {
content: '';
position: absolute;
bottom: 0;
right: 0;
margin: auto;
width: 100px;
height: 100px;
background-color: #2382e5;
border-radius: 50%;
z-index: -1;
transform: scale(0) translate(50%, 50%);
transform-origin: right bottom;
transition: .3s;
}
.btn.btn__05 a:hover {
transition: .3s;
color: white;
}
.btn.btn__05 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.