-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
executable file
·245 lines (198 loc) · 9.48 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Animate</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="demo/css/style.css" rel="stylesheet">
<link href="demo/css/responsive.css" rel="stylesheet">
<link href="animate/css/animate.css" rel="stylesheet">
<!-- <link href="demo/css/docs.css" rel="stylesheet"> -->
<!-- <link href="demo/js/google-code-prettify/prettify.css" rel="stylesheet"> -->
<!-- CSS just for the tests page -->
<link href="demo/css/animate-tests.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<script src="demo/js/modernizr.js"></script>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<div id="wrap">
<div class="hero-unit">
<h1>animate</h1>
</div>
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
<div class="container">
<!-- <p class="lead align-center">Classes to animate it all!</p> -->
</div>
</header>
<div class="content">
<div class="sandbox">
<div id="animateTest">
<span>Animate Me!</span>
</div>
</div>
</div>
<section class="animate-canvas">
<div class="container">
<div class="row-fluid">
<div class="span12">
<h3>Keyframe Animations</h3>
<p>These pure CSS keyframe animations are compiled using LESS. They are hardware accelerated animations that perform beautifully across all devices. They are much more efficient than jQuery animations and can be easily added to any element with just a single class.</p>
</div>
</div>
<hr>
<div class="row-fluid">
<div class="span12">
<h3>Attention seekers</h3>
<a class="btn btn-primary" data-test='flash'>flash</a>
<a class="btn btn-primary" data-test='bounce'>bounce</a>
<a class="btn btn-primary" data-test='shake'>shake</a>
<a class="btn btn-primary" data-test='tada'>tada</a>
<a class="btn btn-primary" data-test='swing'>swing</a>
<a class="btn btn-primary" data-test='wobble'>wobble</a>
<a class="btn btn-primary" data-test='wiggle'>wiggle</a>
<a class="btn btn-primary" data-test='pulse'>pulse</a>
<h3>Flippers</h3>
<a class="btn btn-primary" data-test='flip'>flip</a>
<a class="btn btn-primary" data-test='flipInX'>flipInX</a>
<a class="btn btn-primary" data-test='flipOutX'>flipOutX</a>
<a class="btn btn-primary" data-test='flipInY'>flipInY</a>
<a class="btn btn-primary" data-test='flipOutY'>flipOutY</a>
<h3>Fading entrances</h3>
<a class="btn btn-primary" data-test='fadeIn'>fadeIn</a>
<a class="btn btn-primary" data-test='fadeInUp'>fadeInUp</a>
<a class="btn btn-primary" data-test='fadeInDown'>fadeInDown</a>
<a class="btn btn-primary" data-test='fadeInLeft'>fadeInLeft</a>
<a class="btn btn-primary" data-test='fadeInRight'>fadeInRight</a>
<a class="btn btn-primary" data-test='fadeInUpBig'>fadeInUpBig</a>
<a class="btn btn-primary" data-test='fadeInDownBig'>fadeInDownBig</a>
<a class="btn btn-primary" data-test='fadeInLeftBig'>fadeInLeftBig</a>
<a class="btn btn-primary" data-test='fadeInRightBig'>fadeInRightBig</a>
<h3>Fading exits</h3>
<a class="btn btn-primary" data-test='fadeOut'>fadeOut</a>
<a class="btn btn-primary" data-test='fadeOutUp'>fadeOutUp</a>
<a class="btn btn-primary" data-test='fadeOutDown'>fadeOutDown</a>
<a class="btn btn-primary" data-test='fadeOutLeft'>fadeOutLeft</a>
<a class="btn btn-primary" data-test='fadeOutRight'>fadeOutRight</a>
<a class="btn btn-primary" data-test='fadeOutUpBig'>fadeOutUpBig</a>
<a class="btn btn-primary" data-test='fadeOutDownBig'>fadeOutDownBig</a>
<a class="btn btn-primary" data-test='fadeOutLeftBig'>fadeOutLeftBig</a>
<a class="btn btn-primary" data-test='fadeOutRightBig'>fadeOutRightBig</a>
<h3>Bouncing entrances</h3>
<a class="btn btn-primary" data-test='bounceIn'>bounceIn</a>
<a class="btn btn-primary" data-test='bounceInDown'>bounceInDown</a>
<a class="btn btn-primary" data-test='bounceInUp'>bounceInUp</a>
<a class="btn btn-primary" data-test='bounceInLeft'>bounceInLeft</a>
<a class="btn btn-primary" data-test='bounceInRight'>bounceInRight</a>
<h3>Bouncing exits</h3>
<a class="btn btn-primary" data-test='bounceOut'>bounceOut</a>
<a class="btn btn-primary" data-test='bounceOutDown'>bounceOutDown</a>
<a class="btn btn-primary" data-test='bounceOutUp'>bounceOutUp</a>
<a class="btn btn-primary" data-test='bounceOutLeft'>bounceOutLeft</a>
<a class="btn btn-primary" data-test='bounceOutRight'>bounceOutRight</a>
<h3>EaseIn entrances</h3>
<a class="btn btn-primary" data-test='easeInLeft'>easeInLeft</a>
<a class="btn btn-primary" data-test='easeInRight'>easeInRight</a>
<h3>EaseOut exits</h3>
<a class="btn btn-primary" data-test='easeOutLeft'>easeOutLeft</a>
<a class="btn btn-primary" data-test='easeInRight'>easeInRight</a>
<h3>Scaling entrances</h3>
<a class="btn btn-primary" data-test='scaleIn'>scaleIn</a>
<a class="btn btn-primary" data-test='scaleInBig'>scaleInBig</a>
<h3>Scaling exits</h3>
<a class="btn btn-primary" data-test='scaleOut'>scaleOut</a>
<a class="btn btn-primary" data-test='scaleOutBig'>scaleOutBig</a>
<h3>Drop</h3>
<a class="btn btn-primary" data-test='dropDown'>dropDown</a>
<a class="btn btn-primary" data-test='dropUp'>dropUp</a>
<h3>Rotating entrances</h3>
<a class="btn btn-primary" data-test='rotateIn'>rotateIn</a>
<a class="btn btn-primary" data-test='rotateInDownLeft'>rotateInDownLeft</a>
<a class="btn btn-primary" data-test='rotateInDownRight'>rotateInDownRight</a>
<a class="btn btn-primary" data-test='rotateInUpLeft'>rotateInUpLeft</a>
<a class="btn btn-primary" data-test='rotateInUpRight'>rotateInUpRight</a>
<h3>Rotating exits</h3>
<a class="btn btn-primary" data-test='rotateOut'>rotateOut</a>
<a class="btn btn-primary" data-test='rotateOutDownLeft'>rotateOutDownLeft</a>
<a class="btn btn-primary" data-test='rotateOutDownRight'>rotateOutDownRight</a>
<a class="btn btn-primary" data-test='rotateOutUpLeft'>rotateOutUpLeft</a>
<a class="btn btn-primary" data-test='rotateOutUpRight'>rotateOutUpRight</a>
<h3>Lightspeed</h3>
<a class="btn btn-primary" data-test='lightSpeedIn'>lightSpeedIn</a>
<a class="btn btn-primary" data-test='lightSpeedOut'>lightSpeedOut</a>
<h3>Specials</h3>
<a class="btn btn-primary" data-test='hingeLeft'>hingeLeft</a>
<a class="btn btn-primary" data-test='hingeRight'>hingeRight</a>
<a class="btn btn-primary" data-test='rollIn'>rollIn</a>
<a class="btn btn-primary" data-test='rollOut'>rollOut</a>
</div>
</div>
</div><!-- /container -->
</section><!-- /animate-canvas -->
<div id="push"></div>
</div> <!-- /wrap -->
<!-- Footer
================================================== -->
<footer id="footer">
<div class="container">
<p class="pull-right"><a href="#">Back to top</a></p>
<p>Follow Me</p>
<ul class="footer-links pull-left">
<li><a href="http://twitter.com/joshuapekera">@joshuapekera</a></li>
</ul>
</div>
</footer>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="demo/js/jquery.js"></script>
<script src="demo/js/plugins.min.js"></script>
<script src="demo/js/app.min.js"></script>
<script src="demo/js/fastclick.min.js"></script>
<script>
function testAnim(x) {
$('#animateTest').removeClass().addClass(x);
var wait = window.setTimeout( function(){
$('#animateTest').removeClass()},
1300
);
}
$(function(){
$pos = $('.content').offset().top - 0;
$(window).on('scroll', function(){
if($(window).scrollTop() >= $pos) {
$('.sandbox').addClass('fixed');
} else {
$('.sandbox').removeClass('fixed');
}
});
});
$(document).ready(function(){
$('a[data-test]').click(function(){
var anim = $(this).attr('data-test');
testAnim(anim);
});
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30476296-5']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>