<div class="box"></div>
body {
padding: 64px;
}
.box {
width: 50px;
height: 50px;
background: #1ab4d3;
transition-property: transform;
transition-duration: 1s;
}
.box:hover {
transform: translate(50px, 30px);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.