1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
7 <title>Overriding Animations
</title>
8 <script src=
"../../shared/javascript/utils.js" type=
"text/javascript" charset=
"utf-8"></script>
9 <style type=
"text/css" media=
"screen">
15 border:
1px solid black;
23 background-color: blue;
25 -webkit-animation-name: slide;
26 -webkit-animation-duration:
1s;
27 -webkit-animation-direction: alternate;
28 -webkit-animation-timing-function: ease-in-out;
29 -webkit-animation-iteration-count: infinite;
33 -webkit-animation-duration:
0s;
37 -webkit-animation-duration:
0;
40 @-webkit-keyframes slide {
41 from { transform: translateX(
0); }
42 to { transform: translateX(
280px); }
48 <p>Single anim (should keep animating)
</p>
49 <div class=
"container" onclick=
"toggleClassName(this, 'highlighted')">
50 <div class=
"box none">
53 <p>duration:
"0s" (should not animate)
</p>
54 <div class=
"container" onclick=
"toggleClassName(this, 'highlighted')">
58 <p>duration:
"0" (should animate since inherits valid duration)
</p>
59 <div class=
"container" onclick=
"toggleClassName(this, 'highlighted')">