-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.html
78 lines (59 loc) · 2.81 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
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery Shadow Plugin</title>
<script src="jquery.shadow/jquery-1.5.min.js"></script>
<script src="jquery.shadow/jquery.shadow.js"></script>
<link rel="stylesheet" href="jquery.shadow/jquery.shadow.css" />
<link rel="stylesheet" href="style.css" />
<script src="main.js"></script>
</head>
<body>
<div class="container">
<h1>jQuery Shadow Plugin</h1>
<div class="box standard">
<p><code>$('.box.standard')<br/> .shadow();</code></p>
</div>
<div class="box lifted">
<p><code>$('.box.lifted')<br/> .shadow('lifted');</code></p>
</div>
<div class="box perspective">
<p><code>$('.box.perspective')<br/> .shadow('perspective');</code></p>
</div>
<div class="box raised">
<p><code>$('.box.raised')<br/> .shadow('raised');</code></p>
</div>
<div class="box sides-vt-1">
<p><code>$('.box.sides-vt-1')<br/> .shadow({type:'sides', sides:'vt-1'});</code></p>
</div>
<div class="box sides-vt-2">
<p><code>$('.box.sides-vt-2')<br/> .shadow({type:'sides', sides:'vt-2'});</code></p>
</div>
<div class="box sides-hz-1">
<p><code>$('.box.sides-hz-1')<br/> .shadow({type:'sides', sides:'hz-1'});</code></p>
</div>
<div class="box sides-hz-2">
<p><code>$('.box.sides-hz-2')<br/> .shadow({type:'sides', sides:'hz-2'});</code></p>
</div>
<div class="box rotated">
<p><code>$('.box.rotated')<br/> .shadow({type:'rotated',<br/>rotate:'-5deg'});</code></p>
</div>
<div class="box rotated lifted">
<p><code>.rotated.lifted</code></p>
</div>
<div class="box rotated perspective">
<p><code>.rotated.perspective</code></p>
</div>
<div class="box rotated raised">
<p><code>.rotated.raised</code></p>
</div>
</div>
<p>Adapted from <a href="http://nicolasgallagher.com/css-drop-shadows-without-images/demo/" target="_BLANK">Nicholas Gallagher's CSS drop shadows without images demo</a></p>
<a href="http://twitter.com/share" class="twitter-share-button" data-text="Demo: jquery shadows" data-count="horizontal" data-via="necolas">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<div class="ribbon">
<a href="https://github.com/sydlawrence/jQuery-Shadow" rel="me">Download the code</a>
</div>
</body>
</html>