-
Notifications
You must be signed in to change notification settings - Fork 536
/
index.html
56 lines (42 loc) · 1.48 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 FACEFILTER: CSS3D COMEDY GLASSES DEMO</title>
<!-- INCLUDE JEELIZ FACEFILTER SCRIPT -->
<script src="../../../dist/jeelizFaceFilter.js"></script>
<!-- INCLUDE MATH PART OF THREE.JS -->
<script src="../../../libs/three/matrix/THREEMatrix.js"></script>
<!-- INCLUDE DEMO SCRIPT -->
<script src="./main.js"></script>
<!-- INCLUDE FORK ME ON GITHUB BANNER -->
<script 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-image: url('comedy-glasses.png');
background-size: cover;
height: 200px; width: 200px;
}
.mouthOpened {
}
.mouthClosed {
}
#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>
<canvas width="1024" height="1024" id='jeeFaceFilterCanvas'></canvas>
<div id='jeelizFaceFilterFollow'>
</div>
</body>
</html>