-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathindex5.html
More file actions
executable file
·175 lines (170 loc) · 8.5 KB
/
index5.html
File metadata and controls
executable file
·175 lines (170 loc) · 8.5 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Direction-Aware Hover Effect with CSS3 and jQuery</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Direction-Aware Hover Effect with CSS3 and jQuery" />
<meta name="keywords" content="hover, css3, jquery, effect, direction, aware, depending, thumbnails" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Alegreya+SC:700,400italic' rel='stylesheet' type='text/css' />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/modernizr.custom.97074.js"></script>
<noscript><link rel="stylesheet" type="text/css" href="css/noJS.css"/></noscript>
</head>
<body>
<div class="container">
<!-- Codrops top bar -->
<div class="codrops-top clearfix">
<a href="http://tympanus.net/Tutorials/SlideshowJmpress/">
<strong>« Previous Demo: </strong>Slideshow with jmpress.js
</a>
<span class="right">
<a href="http://tympanus.net/codrops/2012/04/09/direction-aware-hover-effect-with-css3-and-jquery/">
<strong>Back to the Codrops Article</strong>
</a>
</span>
</div><!--/ Codrops top bar -->
<header class="clearfix">
<span>Tips & Tricks</span>
<h1>Direction-Aware <span>Hover Effect</span></h1>
<nav class="codrops-demos">
<a href="index.html">Default</a>
<a href="index2.html">Delay</a>
<a href="index3.html">Inverse</a>
<a href="index4.html">Named Object</a>
<a class="current-demo" href="index5.html">Method</a>
</nav>
<p>Moving from one thumb to the other will immediately trigger the sliding of the info box.</p>
<nav class="codrops-demos">
<a id="show-default" href="#">Show (default)</a>
<a id="show-left" href="#">Show (left)</a>
<a id="hide-default" href="#">Hide (default)</a>
<a id="hide-right" href="#">Hide (right)</a>
</nav>
<nav class="codrops-demos">
<a id="set-options" href="#">options {hoverDelay: 300, inverse: true}</a>
<a id="reset-options" href="#">Reset options</a>
</nav>
<nav class="codrops-demos">
<a id="destroy" href="#">Destroy</a>
<a id="rebuild-default" href="#">Rebuild</a>
<a id="rebuild-options" href="#">Rebuild {hoverDelay: 300, inverse: true}</a>
</nav>
</header>
<section>
<ul id="da-thumbs" class="da-thumbs">
<li>
<a href="http://dribbble.com/shots/505046-Menu">
<img src="images/1.jpg" />
<div><span>Menu by Simon Jensen</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/504336-TN-Aquarium">
<img src="images/2.jpg" />
<div><span>TN Aquarium by Charlie Gann</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/504197-Mr-Crabs">
<img src="images/3.jpg" />
<div><span>Mr. Crabs by John Generalov</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/503731-Gallery-of-Mo-2-Mo-logo">
<img src="images/4.jpg" />
<div><span>Gallery of Mo 2.Mo logo by Adam Campion</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/503058-Ice-Cream-nom-nom">
<img src="images/5.jpg" />
<div><span>Ice Cream - nom nom by Eight Hour Day</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/502927-My-Muse">
<img src="images/6.jpg" />
<div><span>My Muse by Zachary Horst</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/502538-Natalie-Justin-Cleaning">
<img src="images/7.jpg" />
<div><span>Natalie & Justin Cleaning by Justin Younger</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/502523-App-Preview">
<img src="images/8.jpg" />
<div><span>App Preview by Ryan Deshler</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/501695-Cornwall-Map">
<img src="images/9.jpg" />
<div><span>Cornwall Map by Katharina Maria Zimmermann</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/500861-final-AD-logo">
<img src="images/10.jpg" />
<div><span>final AD logo by Annette Diana</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/500369-Land-Those-Planes">
<img src="images/11.jpg" />
<div><span>Land Those Planes by Lee Ann Marcel</span></div>
</a>
</li>
<li>
<a href="http://dribbble.com/shots/497795-Seahorse">
<img src="images/12.jpg" />
<div><span>Seahorse by Trevor Basset</span></div>
</a>
</li>
</ul>
</section>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.hoverdir.js"></script>
<script type="text/javascript">
$(function () {
$(' #da-thumbs > li ').hoverdir();
$('#show-default').on('click', function () {
$(' #da-thumbs > li ').hoverdir("show");
});
$('#show-left').on('click', function () {
$(' #da-thumbs > li ').hoverdir("show", "left");
});
$('#hide-default').on('click', function () {
$(' #da-thumbs > li ').hoverdir("hide");
});
$('#hide-right').on('click', function () {
$(' #da-thumbs > li ').hoverdir("hide", "right");
});
$('#set-options').on('click', function () {
$(' #da-thumbs > li ').hoverdir("setOptions", {hoverDelay: 300, inverse: true});
});
$('#reset-options').on('click', function () {
$(' #da-thumbs > li ').hoverdir("setOptions", {hoverDelay: 0, inverse: false});
});
$('#destroy').on('click', function () {
$(' #da-thumbs > li ').hoverdir("destroy");
});
$('#rebuild-default').on('click', function () {
$(' #da-thumbs > li ').hoverdir("rebuild");
});
$('#rebuild-options').on('click', function () {
$(' #da-thumbs > li ').hoverdir("rebuild", {hoverDelay: 300, inverse: true});
});
});
</script>
</body>
</html>