forked from powermobileweb/ARFaceFilter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·56 lines (43 loc) · 1.8 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="en-EN" />
<title>JEELIZ FACE FILTER : CSS3D DIV DEMO</title>
<!-- INCLUDE JEELIZ FACEFILTER SCRIPT -->
<script type="text/javascript" src="../../../dist/jeelizFaceFilter.js"></script>
<!-- INCLUDE MATH PART OF THREE.JS -->
<script type="text/javascript" src="../../../libs/threejs/matrix/THREEMatrix.js"></script>
<!-- INCLUDE DEMO SCRIPT -->
<script type="text/javascript" src="./demo_div.js"></script>
<!-- INCLUDE FORK ME ON GITHUB BANNER -->
<script type="text/javascript" src="../../appearance/widget.js"></script>
<link rel="stylesheet" href="../../appearance/style.css" type="text/css" />
<style type='text/css'>
#jeelizFaceFilterFollow {
display: block;
position: absolute; z-index: 1000;
background-color: lime;
height: 60px; width: 60px;
}
.mouthOpened {
background-color: red!important;
}
.mouthClosed {
background-color: yellow!important;
}
#jeeFaceFilterCanvas {
/* YOU SHOULD KEEP the transform: translateZ(-4000px) and the transform-style: preserve-3d;
OTHERWISE THE DIV WILL BE BEHIND THE CANVAS WITH IOS
*/
transform: translateZ(-4000px) translate(-50%, -50%) rotateY(180deg);
transform-style: preserve-3d;
}
</style>
</head>
<body onload="main()" style='color: white'>
<canvas width="1024" height="1024" id='jeeFaceFilterCanvas'></canvas>
<div id='jeelizFaceFilterFollow'>
</div>
</body>
</html>