blob: 360b280820c9ab09ca475f1428e4a5e01cfacdc7 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Animation of left property</title>
div {
position: relative;
left: 100px;
height: 200px;
width: 200px;
background-color: #9bb;
animation-name: bounce;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: ease-in-out;
@keyframes bounce {
from {
left: 100px;
to {
left: 300px;
<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.