-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (36 loc) · 770 Bytes
/
index.html
File metadata and controls
38 lines (36 loc) · 770 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>MaterialImage</title>
<style>
body {
margin: 0
}
html,
body {
width: 100%;
height: 100%;
min-height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<script src="dist/materialImage.es5.js"></script>
<script>
var body = document.querySelector('body')
var materialBg = new MaterialImage({
el: body,
// debug: true,
// output: 'image'
})
window.addEventListener('resize', () => {
materialBg.adjust();
}, false);
document.addEventListener('click', () => {
materialBg.protract();
}, false);
</script>
</body>
</html>