Skip to content

Commit 2d2644e

Browse files
committed
Fixed linebreaking in animation step direction test
1 parent 282e366 commit 2d2644e

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

animation-step-direction.html

+64-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,64 @@
1-
<!DOCTYPE html><html><head><meta charset="utf-8" /><title>Figure</title><style type="text/css">html {background: silver;}body {background: white; margin: 1em; padding: 1em;}.diagram {height: 100px; width: 1000px; background: linear-gradient(to right, #CCC 10%, 10%, #BBB 20%, 20%, #AAA 30%, 30%, #999 40%, 40%, #888 50%, 50%, #777 60%, 60%, #666 70%, 70%, #555 80%, 80%, #444 90%, 90%, #333 100% );}.label {text-align: center; font: 2em Arvo, serif;}section .label {background: url(i/anim-arrow.png) no-repeat 0 100% / 900px 40px; width: 1000px; padding: 30px 0; margin: 0;}#dg02 + .label {background-position: 100px 0;}body:hover {background: #FFE;}body:hover * {animation-play-state: paused;}.stepanim {height: 100px; width: 100px; background: green; color: white; display: flex; justify-content: center; align-items: center; font: 2em Arvo, serif; animation: stepcolor 7.5s steps(10,end) forwards, stepmove 7.5s steps(10,end) forwards;}#an02 {animation-timing-function: steps(10,start), steps(10,start);}@keyframes stepcolor { from {background: #CCC;} to {background: #333;}}@keyframes stepmove { from {margin-left: 0;} to {margin-left: 1000px;}}</style></head><body><p class="label">Hover the mouse pointer over the <code>body</code> (the white area) to pause animations.</p><section><p class="label">end</p><div id="dg01" class="diagram"></div><div id="an01" class="stepanim">end</div><div id="an02" class="stepanim">start</div><div id="dg02" class="diagram"></div><p class="label">start</p></section></body></html>
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Figure</title>
6+
<style type="text/css">
7+
html {background: silver;}
8+
body {background: white; margin: 1em; padding: 1em;}
9+
.diagram {height: 100px; width: 1000px;
10+
background: linear-gradient(to right,
11+
#CCC 10%, 10%,
12+
#BBB 20%, 20%,
13+
#AAA 30%, 30%,
14+
#999 40%, 40%,
15+
#888 50%, 50%,
16+
#777 60%, 60%,
17+
#666 70%, 70%,
18+
#555 80%, 80%,
19+
#444 90%, 90%,
20+
#333 100%
21+
);}
22+
.label {text-align: center; font: 2em Arvo, serif;}
23+
section .label {background: url(i/anim-arrow.png) no-repeat 0 100% / 900px 40px;
24+
width: 1000px; padding: 30px 0; margin: 0;}
25+
#dg02 + .label {background-position: 100px 0;}
26+
27+
body:hover {background: #FFE;}
28+
body:hover * {animation-play-state: paused;}
29+
.stepanim {height: 100px; width: 100px;
30+
background: green; color: white; display: flex;
31+
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);}
34+
@keyframes stepcolor {
35+
from {background: #CCC;}
36+
to {background: #333;}
37+
}
38+
@keyframes stepmove {
39+
from {margin-left: 0;}
40+
to {margin-left: 1000px;}
41+
}
42+
43+
</style>
44+
</head>
45+
<body>
46+
<p class="label">Hover the mouse pointer over the <code>body</code> (the white area) to pause animations.</p>
47+
48+
<section>
49+
50+
<p class="label">end</p>
51+
<div id="dg01" class="diagram"></div>
52+
53+
<div id="an01" class="stepanim">end</div>
54+
<div id="an02" class="stepanim">start</div>
55+
56+
<div id="dg02" class="diagram"></div>
57+
<p class="label">start</p>
58+
59+
</section>
60+
61+
62+
63+
</body>
64+
</html>

0 commit comments

Comments
 (0)