/
index.html
122 lines (117 loc) · 4.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<!--
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Simplest possible examples of HTML, CSS and JavaScript." />
<meta name="author" content="//samdutton.com">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta itemprop="name" content="simpl.info: simplest possible examples of HTML, CSS and JavaScript">
<meta itemprop="image" content="/images/icons/icon192.png">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#fff">
<base target="_blank">
<title>Web Animations API</title>
<link rel="stylesheet" href="../css/main.css" />
<style>
*{-webkit-box-sizing:border-box;box-sizing:border-box}
.overflow-hidden{overflow:hidden}
.grid{display:block;font-size:0}
.cell{display:inline-block;font-size:2rem;font-weight:700;position:relative;width:100%;height:30vh;padding:1rem .5rem;text-align:center}
.cell .content{display:block;position:absolute;top:.5rem;bottom:.5rem;left:.5rem;right:.5rem;padding:1rem;color:#fff;background:#4183C4;box-shadow:0 2px 10px -10px #ccc}
.cell.w16{width:16%;width:-webkit-calc(100% / 6);width:calc(100% / 6)}
.cell.w25{width:25%}
.cell.w33{width:33%width:-webkit-calc(100% / 3);width:calc(100% / 3)}
.cell.w50{width:50%}
.cell.w66{width:66%;width:-webkit-calc(100% / (3 / 2));width:calc(100% / (3 / 2))}
.cell.w75{width:75%}
.cell.w83{width:83%;width:-webkit-calc(100% / (6 / 5));width:calc(100% / (6 / 5))}
.cell.w100{width:100%}
</style>
</head>
<body>
<div id="container">
<h1><a href="../index.html" title="simpl.info home page">simpl.info</a> Web Animations API</h1>
<p>If the below does not appear to be a scrolling marquee, but rather a static grid, your browser does not support the Web Animations API (or the partial polyfill used in this example).</p>
<div class="overflow-hidden">
<div class="grid marquee">
<div class="cell w66">
<div class="content">
Start
</div>
</div>
<div class="cell w33">
<div class="content">
1
</div>
</div>
<div class="cell w25">
<div class="content">
2
</div>
</div>
<div class="cell w25">
<div class="content">
3
</div>
</div>
<div class="cell w50">
<div class="content">
4
</div>
</div>
<div class="cell w100">
<div class="content">
5
</div>
</div>
<div class="cell w16">
<div class="content">
6
</div>
</div>
<div class="cell w83">
<div class="content">
7
</div>
</div>
<div class="cell w25">
<div class="content">
8
</div>
</div>
<div class="cell w75">
<div class="content">
9
</div>
</div>
<div class="cell w66">
<div class="content">
10
</div>
</div>
<div class="cell w33">
<div class="content">
Finish
</div>
</div>
</div>
</div>
<a href="https://github.com/samdutton/simpl/blob/gh-pages/webanimations" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
</div>
<script src="//cdn.rawgit.com/wnda/web-animations-api-shiv/07ed88f3/web-animations-api-shiv.js"></script>
<script src="js/main.js"></script>
<script src="../js/lib/ga.js"></script>
</body>
</html>