<div class="container">
  <p>Hover over the container to see the element's background color and left position offset transition.</p>
  <div class="element"></div>
body {
  background-color: #F5F5F5;
  color: #555;
  font-size: 1.1em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

.container {
  margin: 50px auto;
  max-width: 700px;
  padding: 1em;
  border: 1px solid #aaa;
  background-color: white;

.element {
  padding: 1em;
  width: 30px;
  height: 30px;
  left: 0;
  background-color: #009966;
  position: relative;
  -webkit-transition-property: background-color, left;
  transition-property: background-color, left;
  -webkit-transition-duration: 1s, 1s;
  transition-duration: 1s, 1s;
  -webkit-transition-timing-function: ease-out, cubic-bezier(.82, .1, .14, 1.12);
  transition-timing-function: ease-out, cubic-bezier(.82, .1, .14, 1.12);

.container:hover .element {
  left: 250px;
  background-color: purple;