forked from codrops/IconHoverEffects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·206 lines (203 loc) · 9.72 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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Icon Hover Effects with CSS Transitions and Animations</title>
<meta name="description" content="Simple Icon Hover Effects with CSS Transitions and Animations" />
<meta name="keywords" content="icons, hover, round, circular, transition, animation, css3" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/default.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<script src="js/modernizr.custom.js"></script>
</head>
<body>
<div class="container">
<!-- Top Navigation -->
<div class="codrops-top clearfix">
<a class="codrops-icon codrops-icon-prev" href="http://tympanus.net/Development/PseudoElementsAnimationsTransitions/"><span>Previous Demo</span></a>
<span class="right"><a class="codrops-icon codrops-icon-drop" href="http://tympanus.net/codrops/?p=15265"><span>Back to the Codrops Article</span></a></span>
</div>
<header>
<h1>Icon Hover Effects <span>Simple hover effects for circular icons</span></h1>
<nav id="codrops-demos" class="codrops-demos">
<a href="#set-1">1</a>
<a href="#set-2">2</a>
<a href="#set-3">3</a>
<a href="#set-4">4</a>
<a href="#set-5">5</a>
<a href="#set-6">6</a>
<a href="#set-7">7</a>
<a href="#set-8">8</a>
<a href="#set-9">9</a>
</nav>
</header>
<section id="set-1">
<div class="hi-icon-wrap hi-icon-effect-1 hi-icon-effect-1a">
<a href="#set-1" class="hi-icon hi-icon-mobile">Mobile</a>
<a href="#set-1" class="hi-icon hi-icon-screen">Desktop</a>
<a href="#set-1" class="hi-icon hi-icon-earth">Partners</a>
<a href="#set-1" class="hi-icon hi-icon-support">Support</a>
<a href="#set-1" class="hi-icon hi-icon-locked">Security</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-1 hi-icon-effect-1b">
<a href="#set-1" class="hi-icon hi-icon-mobile">Mobile</a>
<a href="#set-1" class="hi-icon hi-icon-screen">Desktop</a>
<a href="#set-1" class="hi-icon hi-icon-earth">Partners</a>
<a href="#set-1" class="hi-icon hi-icon-support">Support</a>
<a href="#set-1" class="hi-icon hi-icon-locked">Security</a>
</div>
</section>
<section id="set-2">
<div class="hi-icon-wrap hi-icon-effect-2 hi-icon-effect-2a">
<a href="#set-2" class="hi-icon hi-icon-cog">Settings</a>
<a href="#set-2" class="hi-icon hi-icon-clock">Time</a>
<a href="#set-2" class="hi-icon hi-icon-videos">Videos</a>
<a href="#set-2" class="hi-icon hi-icon-list">List</a>
<a href="#set-2" class="hi-icon hi-icon-refresh">Refresh</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-2 hi-icon-effect-2b">
<a href="#set-2" class="hi-icon hi-icon-cog">Settings</a>
<a href="#set-2" class="hi-icon hi-icon-clock">Time</a>
<a href="#set-2" class="hi-icon hi-icon-videos">Videos</a>
<a href="#set-2" class="hi-icon hi-icon-list">List</a>
<a href="#set-2" class="hi-icon hi-icon-refresh">Refresh</a>
</div>
</section>
<section id="set-3">
<div class="hi-icon-wrap hi-icon-effect-3 hi-icon-effect-3a">
<a href="#set-3" class="hi-icon hi-icon-images">Images</a>
<a href="#set-3" class="hi-icon hi-icon-pencil">Edit</a>
<a href="#set-3" class="hi-icon hi-icon-link">Link</a>
<a href="#set-3" class="hi-icon hi-icon-mail">Mail</a>
<a href="#set-3" class="hi-icon hi-icon-location">Location</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-3 hi-icon-effect-3b">
<a href="#set-3" class="hi-icon hi-icon-images">Images</a>
<a href="#set-3" class="hi-icon hi-icon-pencil">Edit</a>
<a href="#set-3" class="hi-icon hi-icon-link">Link</a>
<a href="#set-3" class="hi-icon hi-icon-mail">Mail</a>
<a href="#set-3" class="hi-icon hi-icon-location">Location</a>
</div>
</section>
<section id="set-4">
<div class="hi-icon-wrap hi-icon-effect-4 hi-icon-effect-4a">
<a href="#set-4" class="hi-icon hi-icon-archive">Archive</a>
<a href="#set-4" class="hi-icon hi-icon-chat">Chat</a>
<a href="#set-4" class="hi-icon hi-icon-bookmark">Bookmarks</a>
<a href="#set-4" class="hi-icon hi-icon-user">User</a>
<a href="#set-4" class="hi-icon hi-icon-contract">Contact</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-4 hi-icon-effect-4b">
<a href="#set-4" class="hi-icon hi-icon-archive">Archive</a>
<a href="#set-4" class="hi-icon hi-icon-chat">Chat</a>
<a href="#set-4" class="hi-icon hi-icon-bookmark">Bookmarks</a>
<a href="#set-4" class="hi-icon hi-icon-user">User</a>
<a href="#set-4" class="hi-icon hi-icon-contract">Contact</a>
</div>
<p>Note that the dashed border on a round pseudo-element (border-radius: 50%) does not work in FF 21.0</p>
</section>
<section id="set-5">
<div class="hi-icon-wrap hi-icon-effect-5 hi-icon-effect-5a">
<a href="#set-5" class="hi-icon hi-icon-mobile">Mobile</a>
<a href="#set-5" class="hi-icon hi-icon-screen">Desktop</a>
<a href="#set-5" class="hi-icon hi-icon-earth">Partners</a>
<a href="#set-5" class="hi-icon hi-icon-support">Support</a>
<a href="#set-5" class="hi-icon hi-icon-locked">Security</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-5 hi-icon-effect-5b">
<a href="#set-5" class="hi-icon hi-icon-mobile">Mobile</a>
<a href="#set-5" class="hi-icon hi-icon-screen">Desktop</a>
<a href="#set-5" class="hi-icon hi-icon-earth">Partners</a>
<a href="#set-5" class="hi-icon hi-icon-support">Support</a>
<a href="#set-5" class="hi-icon hi-icon-locked">Security</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-5 hi-icon-effect-5c">
<a href="#set-5" class="hi-icon hi-icon-mobile">Mobile</a>
<a href="#set-5" class="hi-icon hi-icon-screen">Desktop</a>
<a href="#set-5" class="hi-icon hi-icon-earth">Partners</a>
<a href="#set-5" class="hi-icon hi-icon-support">Support</a>
<a href="#set-5" class="hi-icon hi-icon-locked">Security</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-5 hi-icon-effect-5d">
<a href="#set-5" class="hi-icon hi-icon-mobile">Mobile</a>
<a href="#set-5" class="hi-icon hi-icon-screen">Desktop</a>
<a href="#set-5" class="hi-icon hi-icon-earth">Partners</a>
<a href="#set-5" class="hi-icon hi-icon-support">Support</a>
<a href="#set-5" class="hi-icon hi-icon-locked">Security</a>
</div>
</section>
<section id="set-6">
<div class="hi-icon-wrap hi-icon-effect-6">
<a href="#set-6" class="hi-icon hi-icon-cog">Settings</a>
<a href="#set-6" class="hi-icon hi-icon-support">Support</a>
<a href="#set-6" class="hi-icon hi-icon-star">Fav</a>
<a href="#set-6" class="hi-icon hi-icon-contract">Contract</a>
<a href="#set-6" class="hi-icon hi-icon-refresh">Refresh</a>
</div>
</section>
<section id="set-7">
<div class="hi-icon-wrap hi-icon-effect-7 hi-icon-effect-7a">
<a href="#set-7" class="hi-icon hi-icon-cog">Settings</a>
<a href="#set-7" class="hi-icon hi-icon-clock">Time</a>
<a href="#set-7" class="hi-icon hi-icon-videos">Videos</a>
<a href="#set-7" class="hi-icon hi-icon-list">List</a>
<a href="#set-7" class="hi-icon hi-icon-refresh">Refresh</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-7 hi-icon-effect-7b">
<a href="#set-7" class="hi-icon hi-icon-cog">Settings</a>
<a href="#set-7" class="hi-icon hi-icon-clock">Time</a>
<a href="#set-7" class="hi-icon hi-icon-videos">Videos</a>
<a href="#set-7" class="hi-icon hi-icon-list">List</a>
<a href="#set-7" class="hi-icon hi-icon-refresh">Refresh</a>
</div>
</section>
<section id="set-8">
<div class="hi-icon-wrap hi-icon-effect-8">
<a href="#set-8" class="hi-icon hi-icon-archive">Archive</a>
<a href="#set-8" class="hi-icon hi-icon-chat">Chat</a>
<a href="#set-8" class="hi-icon hi-icon-bookmark">Bookmarks</a>
<a href="#set-8" class="hi-icon hi-icon-user">User</a>
<a href="#set-8" class="hi-icon hi-icon-contract">Contact</a>
</div>
</section>
<section id="set-9">
<div class="hi-icon-wrap hi-icon-effect-9 hi-icon-effect-9a">
<a href="#set-9" class="hi-icon hi-icon-images">Images</a>
<a href="#set-9" class="hi-icon hi-icon-pencil">Edit</a>
<a href="#set-9" class="hi-icon hi-icon-link">Link</a>
<a href="#set-9" class="hi-icon hi-icon-mail">Mail</a>
<a href="#set-9" class="hi-icon hi-icon-location">Location</a>
</div>
<div class="hi-icon-wrap hi-icon-effect-9 hi-icon-effect-9b">
<a href="#set-9" class="hi-icon hi-icon-images">Images</a>
<a href="#set-9" class="hi-icon hi-icon-pencil">Edit</a>
<a href="#set-9" class="hi-icon hi-icon-link">Link</a>
<a href="#set-9" class="hi-icon hi-icon-mail">Mail</a>
<a href="#set-9" class="hi-icon hi-icon-location">Location</a>
</div>
</section>
</div><!-- /container -->
<script>
var hash = window.location.hash,
current = 0,
demos = Array.prototype.slice.call( document.querySelectorAll( '#codrops-demos > a' ) );
if( hash === '' ) hash = '#set-1';
setDemo( demos[ parseInt( hash.match(/#set-(\d+)/)[1] ) - 1 ] );
demos.forEach( function( el, i ) {
el.addEventListener( 'click', function() { setDemo( this ); } );
} );
function setDemo( el ) {
var idx = demos.indexOf( el );
if( current !== idx ) {
var currentDemo = demos[ current ];
currentDemo.className = currentDemo.className.replace(new RegExp("(^|\\s+)" + 'current-demo' + "(\\s+|$)"), ' ');
}
current = idx;
el.className = 'current-demo';
}
</script>
</body>
</html>