-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
76 lines (76 loc) · 2.3 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Illookinati is watching us</title>
<style>
.container {
margin: 0 auto;
width: 1000px;
}
.container-center {
text-align: center;
}
a {
font-family: "Comic Sans MS", "Comic Sans", cursive;
color: yellow;
}
body {
background: rgb(66, 78, 61);
color: wheat;
font-size: 17px;
}
#giphy {
margin-bottom: -250px;
}
</style>
</head>
<body>
<div class="container">
<div class="container-center">
<img id="giphy" src="images/giphy.gif" width="600" height="600"/><br/>
<img id="logo1" src="images/illuminati.png" width="300" height="300"/>
<img id="logo2" src="images/illuminati.png" width="300" height="300"/>
<h1>Illookinati.js</h1>
</div>
<h3>Illookinati helps any element watch the mouse.. constantly.</h3>
<br/>
<h3>Installation:</h3>
<pre>
<code>
bower install illookinati
</code>
</pre>
<br/>
<h3>Usage:</h3>
<pre>
<code>
illookinati({
target: document.querySelector('img#giphy'),
max: 50, // optional max angle
targetPerspective: '800px', // optional perspective of the element
useDistance: false // optional, if true the angle of rotation will depend on
// cursor's distance from the target (frog gif uses it)
});
</code>
</pre>
Fork me on <a href="https://github.com/herkyl/illookinati">GitHub</a> and follow me on <a href="https://twitter.com/_sergeh">Twitter</a>
</div>
<script src="src/main.js"></script>
<script>
illookinati({
target: document.querySelector('img#giphy'),
useDistance: true,
max: 80
});
illookinati({
target: document.querySelector('img#logo1'),
max: 30
});
illookinati({
target: document.querySelector('img#logo2'),
max: 30
});
</script>
</body>
</html>