<button>
Teste
</button>
button {
color: white;
background: blue;
transition: transform 1s;
transform: translateX(0) scale(0.5);
}
button:hover,
button:focus {
background: red;
transform: translateX(10px) scale(1.2);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.