body { display: flex; justify-content: center; align-items: center; height: 100vh; } .botao { width: 149px; height: 45px; border-radius: 20px; border: none; box-shadow: 1px 1px rgba(107, 221, 215, 0.37); padding: 5px 10px; background-color: rgb(0, 0, 0); color: #fff; font-family: Roboto, sans-serif; font-weight: 505; font-size: 16px; line-height: 1; cursor: pointer; filter: drop-shadow(0 0 10px rgba(59, 190, 230, 0.568)); transition: 0.5s linear; } .botao .mysvg { display: none; } .botao:hover { width: 50px; height: 50px; border-radius: 50%; transition: 0.5s linear; } .botao:hover .texto { display: none; } .botao:hover .mysvg { display: inline; } .botao:hover::after { content: ""; position: absolute; width: 16px; height: 3px; background-color: rgb(255, 255, 255); margin-left: -20px; animation: animate 0.9s linear infinite; } .botao:hover::before { content: ""; position: absolute; top: -3px; left: -3px; width: 100%; height: 100%; border: 3.5px solid transparent; border-top: 3.5px solid #fff; border-right: 3.5px solid #fff; border-radius: 50%; animation: animateC 2s linear infinite; } @keyframes animateC { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes animate { 0% { transform: translateY(0); } 100% { transform: translateY(20px); } }