Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (59 sloc) 2.81 KB
<!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/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow();</code></p>
</div>
<div class="box lifted">
<p><code>$('.box.lifted')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow('lifted');</code></p>
</div>
<div class="box perspective">
<p><code>$('.box.perspective')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow('perspective');</code></p>
</div>
<div class="box raised">
<p><code>$('.box.raised')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow('raised');</code></p>
</div>
<div class="box sides-vt-1">
<p><code>$('.box.sides-vt-1')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow({type:'sides', sides:'vt-1'});</code></p>
</div>
<div class="box sides-vt-2">
<p><code>$('.box.sides-vt-2')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow({type:'sides', sides:'vt-2'});</code></p>
</div>
<div class="box sides-hz-1">
<p><code>$('.box.sides-hz-1')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow({type:'sides', sides:'hz-1'});</code></p>
</div>
<div class="box sides-hz-2">
<p><code>$('.box.sides-hz-2')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.shadow({type:'sides', sides:'hz-2'});</code></p>
</div>
<div class="box rotated">
<p><code>$('.box.rotated')<br/>&nbsp;&nbsp;&nbsp;&nbsp;.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>