Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (58 sloc) 1.65 KB
<!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>Overriding Animations</title>
<script src="../../shared/javascript/utils.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css" media="screen">
.container {
position: relative;
width: 400px;
height: 120px;
border: 1px solid black;
margin: 10px;
.box {
position: relative;
width: 100px;
height: 100px;
margin: 10px;
background-color: blue;
z-index: 0;
-webkit-animation-name: "slide";
-webkit-animation-duration: 1s;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
.one {
-webkit-animation-duration: 0s;
.two {
-webkit-animation-duration: 0;
@-webkit-keyframes slide {
from { -webkit-transform: translateX(0); }
to { -webkit-transform: translateX(280px); }
<p>Single anim (should keep animating)</p>
<div class="container" onclick="toggleClassName(this, 'highlighted')">
<div class="box none">
<p>duration: "0s" (should not animate)</p>
<div class="container" onclick="toggleClassName(this, 'highlighted')">
<div class="box one">
<p>duration: "0" (should animate since inherits valid duration)</p>
<div class="container" onclick="toggleClassName(this, 'highlighted')">
<div class="box two">
Jump to Line
Something went wrong with that request. Please try again.