Skip to content

Commit e3a06c3

Browse files
committed
scanningSpinner stuff should be before script code
1 parent 7aff8c8 commit e3a06c3

File tree

1 file changed

+71
-70
lines changed

1 file changed

+71
-70
lines changed

three.js/examples/measure-it.html

Lines changed: 71 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,76 @@
1313
<br />
1414
Contact me any time at <a href='https://twitter.com/nicolocarp' target='_blank'>@nicolocarp</a>
1515
</div>
16+
<!-- Scanning animation when the marker are not visible -->
17+
<div class="scanningSpinner">
18+
<label>
19+
Scanning
20+
</label>
21+
<div class="rect1"></div>
22+
<div class="rect2"></div>
23+
<div class="rect3"></div>
24+
</div>
25+
<style>
26+
.scanningSpinner {
27+
margin: 100px auto;
28+
height: 40px;
29+
text-align: center;
30+
}
31+
32+
.scanningSpinner label {
33+
display: block;
34+
color: #333;
35+
font-size: 200%;
36+
}
37+
38+
.scanningSpinner>div {
39+
background-color: #333;
40+
height: 100%;
41+
width: 6px;
42+
display: inline-block;
43+
44+
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
45+
animation: sk-stretchdelay 1.2s infinite ease-in-out;
46+
}
47+
48+
.scanningSpinner .rect2 {
49+
-webkit-animation-delay: -1.1s;
50+
animation-delay: -1.1s;
51+
}
52+
53+
.scanningSpinner .rect3 {
54+
-webkit-animation-delay: -1.0s;
55+
animation-delay: -1.0s;
56+
}
57+
58+
@-webkit-keyframes sk-stretchdelay {
59+
60+
0%,
61+
40%,
62+
100% {
63+
-webkit-transform: scaleY(0.4)
64+
}
65+
66+
20% {
67+
-webkit-transform: scaleY(1.0)
68+
}
69+
}
70+
71+
@keyframes sk-stretchdelay {
72+
73+
0%,
74+
40%,
75+
100% {
76+
transform: scaleY(0.4);
77+
-webkit-transform: scaleY(0.4);
78+
}
79+
80+
20% {
81+
transform: scaleY(1.0);
82+
-webkit-transform: scaleY(1.0);
83+
}
84+
}
85+
</style>
1686
<script>
1787
//////////////////////////////////////////////////////////////////////////////////
1888
// Init
@@ -298,75 +368,6 @@
298368
})
299369
</script>
300370

301-
<!-- Scanning animation when the marker are not visible -->
302-
<div class="scanningSpinner">
303-
<label>
304-
Scanning
305-
</label>
306-
<div class="rect1"></div>
307-
<div class="rect2"></div>
308-
<div class="rect3"></div>
309-
</div>
310-
<style>
311-
.scanningSpinner {
312-
margin: 100px auto;
313-
height: 40px;
314-
text-align: center;
315-
}
316-
317-
.scanningSpinner label {
318-
display: block;
319-
color: #333;
320-
font-size: 200%;
321-
}
322-
323-
.scanningSpinner>div {
324-
background-color: #333;
325-
height: 100%;
326-
width: 6px;
327-
display: inline-block;
328-
329-
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
330-
animation: sk-stretchdelay 1.2s infinite ease-in-out;
331-
}
332-
333-
.scanningSpinner .rect2 {
334-
-webkit-animation-delay: -1.1s;
335-
animation-delay: -1.1s;
336-
}
337-
338-
.scanningSpinner .rect3 {
339-
-webkit-animation-delay: -1.0s;
340-
animation-delay: -1.0s;
341-
}
342-
343-
@-webkit-keyframes sk-stretchdelay {
344-
345-
0%,
346-
40%,
347-
100% {
348-
-webkit-transform: scaleY(0.4)
349-
}
350-
351-
20% {
352-
-webkit-transform: scaleY(1.0)
353-
}
354-
}
355-
356-
@keyframes sk-stretchdelay {
357-
358-
0%,
359-
40%,
360-
100% {
361-
transform: scaleY(0.4);
362-
-webkit-transform: scaleY(0.4);
363-
}
364-
365-
20% {
366-
transform: scaleY(1.0);
367-
-webkit-transform: scaleY(1.0);
368-
}
369-
}
370-
</style>
371+
371372

372373
</body>

0 commit comments

Comments
 (0)