Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 08b8138ff4
Fetching contributors…

Cannot retrieve contributors at this time

file 43 lines (37 sloc) 1.111 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Animation of left property</title>
    <style>
         div {
             position: relative;
             left: 100px;
             height: 200px;
             width: 200px;
             background-color: #9bb;
             -webkit-animation-name: bounce;
             -webkit-animation-duration: 2s;
             -webkit-animation-iteration-count: infinite;
             -webkit-animation-direction: alternate;
             -webkit-animation-timing-function: ease-in-out;
         }
         
         @-webkit-keyframes bounce {
           from {
             left: 100px;
           }
           to {
             left: 300px;
           }
         }
         
     </style>
</head>
<body>
  <h1>Animation of 'left' property</h1>

  <p>The element below should bounce 200 pixels left and right continuously</p>
  
  <div id="target">
    This element should animate.
  </div>

</body>
</html>
Something went wrong with that request. Please try again.