| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| "http://www.w3.org/TR/html4/loose.dtd"> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <title>Transition of left property</title> |
| -webkit-transition-property: left; |
| -webkit-transition-duration: 1s; |
| <script type="text/javascript" charset="utf-8"> |
| document.getElementById("target").addEventListener("click", function(evt) { |
| evt.target.style.left = "300px"; |
| evt.target.style.left = "100px"; |
| window.addEventListener("load", init, false); |
| <h1>Transition of 'left' property</h1> |
| <p>The element below should move 200 pixels left or right when clicked</p> |
| This element should transition. |