forked from Indamix/real-shadow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (47 loc) · 1.77 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=640" />
<link rel="stylesheet" href="main.css"/>
<title>Real Shadow: jQuery Plugin</title>
</head>
<body>
<a id="forkme_banner" href="https://github.com/Indamix/real-shadow">Fork Me on GitHub</a>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Real Shadow: jQuery Plugin" data-size="large">Tweet</a>
<div class="container">
<h1>Real Shadow</h1>
by <a href="https://github.com/Indamix/">Indamix</a>
<p>Move the mouse cursor across the page</p>
<div class="demo"></div>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/Indamix/real-shadow/master/realshadow.js"></script>
<script type="text/javascript">
$(function(){
var a = ['rect', 'circle', 'round', 'ur', 'll'],
c = ['', 'r', 'g', 'b', 'rgb', 'rg', 'gb', 'br'],
columns = rows = 6,
s = '', i, j;
for (i = 0; i < columns; ++i){
s += '<p>';
for (j = 0; j < rows; ++j)
s += '<span rel="' +
c[(i * columns + j) % c.length] +
'" class="realshadow block ' +
a[(i * columns + j) % a.length] +
' c' +
c[(i * columns + j) % c.length] +
'"></span>';
s += '</p>';
}
$('.demo').html('<div class="wrapper">' + s + '</div>')
$('.realshadow').realshadow({
// followMouse: false
});
});
</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</body>
</html>