forked from olange/learning-webgl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (71 loc) · 3.84 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Experiment 03 – Layers</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Layers on top of each other, as Three.js WebComponents" />
<!--
The `<base>` tag below is present to support two advanced deployment options:
1) Differential serving. 2) Serving from a non-root path.
Instead of manually editing the `<base>` tag yourself, you should generally either:
a) Add a `basePath` property to the build configuration in your `polymer.json`.
b) Use the `--base-path` command-line option for `polymer build`.
-->
<base href="/" />
<link rel="icon" href="images/favicon.ico" />
<!-- See https://goo.gl/OOhYW5 -->
<link rel="manifest" href="manifest.json" />
<!-- See https://goo.gl/qRE0vM -->
<meta name="theme-color" content="#3f51b5" />
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
<meta name="mobile-web-app-capable" content="yes" />
<meta name="application-name" content="Experiment 02 – Three in a Web Component, with subcomponents" />
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Experiment 02 – Three in a Web Component, with subcomponents" />
<!-- Homescreen icons -->
<link rel="apple-touch-icon" href="images/manifest/icon-48x48.png" />
<link rel="apple-touch-icon" sizes="72x72" href="images/manifest/icon-72x72.png" />
<link rel="apple-touch-icon" sizes="96x96" href="images/manifest/icon-96x96.png" />
<link rel="apple-touch-icon" sizes="144x144" href="images/manifest/icon-144x144.png" />
<link rel="apple-touch-icon" sizes="192x192" href="images/manifest/icon-192x192.png" />
<!-- Tile icon for Windows 8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/manifest/icon-144x144.png" />
<meta name="msapplication-TileColor" content="#3f51b5" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- Default twitter cards -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@olange" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="petit-atelier" />
<meta property="og:image" content="images/manifest/icon-144x144.png" />
<!-- Add any global styles for body, document, etc. -->
<style>
.fullbleed { margin: 0; height: 100vh }
body {
/* This is a font-stack that tries to use the system-default sans-serifs first */
font-family: Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 1.5; -webkit-font-smoothing: antialiased }
h3, h4 { margin: 0 }
h3 { color: white }
h4 { color: blueviolet}
</style>
</head>
<body class="fullbleed">
<noscript>Please enable JavaScript to view this website.</noscript>
<my-anim class="fullbleed" interval="25">
<h4>Experience 03</h4>
<h3>Layers with holes</h3>
<my-anim-plane name="blue" color=0x3388ff
speed=-0.5 size=4 segments=24 offset=+0.000 rotation=0></my-anim-sub>
<my-anim-plane name="rosa" color=0xff3399
speed=+0.2 size=8 segments=12 offset=-0.001 rotation=-45></my-anim-sub>
</my-anim>
<!-- Load webcomponents-bundle.js to check and load any polyfills your browser needs -->
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module" src="src/components/my-anim.js" crossorigin></script>
<script type="module" src="src/components/my-anim-plane.js" crossorigin></script>
</body>
</html>