<div class="container">
<p>Hover over the container to see the element transition.</p>
<div class="element"></div>
</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);
/* first value corresponds to the first transition-property value, and the second value corresponds to the second */
}
.container:hover .element {
left: 500px;
background-color: purple;
}