<main>
<div class="btn-box">
<div class="back">Clicked <span class="material-symbols-outlined">
arrow_circle_right
</span></div>
<div class="top">Click <span class="material-symbols-outlined">
arrow_circle_right
</span></div>
</div>
</main>
* {
padding: 0;
margin: 0;
}
main {
display: grid;
place-items: center;
height: 100vh;
width: 100%;
background-color: black;
}
main .btn-box {
padding: 10px;
width: auto;
height: 10px;
border-radius: 10px;
overflow: hidden;
text-align: center;
cursor: pointer;
}
main .btn-box .back,
.top {
font-family: arial;
font-size: 20px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
main .btn-box .back {
font-family: "Segoe UI";
margin-top: -37px;
margin-bottom: 10px;
transition: all 0.5s ease;
color: #74d074;
}
.btn-box:hover .back {
margin-top: -3px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.