Skip to content

Commit 05f436e

Browse files
committedJun 13, 2017
Fixed animation step direction test to make slightly more sense
1 parent 2d2644e commit 05f436e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎animation-step-direction.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#333 100%
2121
);}
2222
.label {text-align: center; font: 2em Arvo, serif;}
23+
code {font: 1em monospace, serif;}
2324
section .label {background: url(i/anim-arrow.png) no-repeat 0 100% / 900px 40px;
2425
width: 1000px; padding: 30px 0; margin: 0;}
2526
#dg02 + .label {background-position: 100px 0;}
@@ -29,21 +30,21 @@
2930
.stepanim {height: 100px; width: 100px;
3031
background: green; color: white; display: flex;
3132
justify-content: center; align-items: center; font: 2em Arvo, serif;
32-
animation: stepcolor 7.5s steps(10,end) forwards, stepmove 7.5s steps(10,end) forwards;}
33-
#an02 {animation-timing-function: steps(10,start), steps(10,start);}
33+
animation: stepcolor 7.5s steps(9,end) forwards, stepmove 7.5s steps(9,end) forwards;}
34+
#an02 {animation-timing-function: steps(9,start), steps(9,start);}
3435
@keyframes stepcolor {
3536
from {background: #CCC;}
3637
to {background: #333;}
3738
}
3839
@keyframes stepmove {
3940
from {margin-left: 0;}
40-
to {margin-left: 1000px;}
41+
to {margin-left: 900px;}
4142
}
4243

4344
</style>
4445
</head>
4546
<body>
46-
<p class="label">Hover the mouse pointer over the <code>body</code> (the white area) to pause animations.</p>
47+
<p class="label">Hover the mouse pointer over the <code>body</code> (the white area) to pause animations. Reload to restart them.</p>
4748

4849
<section>
4950

0 commit comments

Comments
 (0)