<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);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.