-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.html
186 lines (154 loc) · 6.92 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
<!DOCTYPE html>
<html>
<head>
<!-- Tuesday Demo Page -->
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="build/demo.css" />
<link rel="stylesheet" type="text/css" href="build/tuesday.css" />
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="page">
<h1 class="animated tdDropInLeft">It's Tuesday.</h1>
<p class="subheader">A quirky CSS Animation Library.</p>
<div class="container entrances">
<h2>Entrances</h2>
<div class="button-row">
<form>
<select class="animationlist">
<optgroup label="FadeIn">
<option value="tdFadeIn">tdFadeIn</option>
<option value="tdFadeInDown">tdFadeInDown</option>
<option value="tdFadeInLeft">tdFadeInLeft</option>
<option value="tdFadeInUp">tdFadeInUp</option>
<option value="tdFadeInRight">tdFadeInRight</option>
</optgroup>
<optgroup label="ExpandIn">
<option value="tdExpandIn">tdExpandIn</option>
<option value="tdExpandInBounce">tdExpandInBounce</option>
</optgroup>
<optgroup label="ShrinkIn">
<option value="tdShrinkIn">tdShrinkIn</option>
<option value="tdShrinkInBounce">tdShrinkInBounce</option>
</optgroup>
<optgroup label="StampIn">
<option value="tdStampIn">tdStampIn</option>
<option value="tdStampInSwing">tdStampInSwing</option>
</optgroup>
<optgroup label="SwingIn">
<option value="tdSwingIn">tdSwingIn</option>
</optgroup>
<optgroup label="DropIn">
<option value="tdDropInLeft">tdDropInLeft</option>
<option value="tdDropInRight">tdDropInRight</option>
</optgroup>
<optgroup label="PlopIn">
<option value="tdPlopIn">tdPlopIn</option>
<option value="tdPlopInDown">tdPlopInDown</option>
<option value="tdPlopInUp">tdPlopInUp</option>
</optgroup>
<optgroup label="HingeFlip">
<option value="tdHingeFlipIn" selected>tdHingeFlipIn</option>
</optgroup>
</select>
<button class="button animate">Animate</button>
</form>
</div>
<div class="target">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus eveniet unde magnam sequi, iusto, amet iste necessitatibus, impedit nam reiciendis quae corrupti earum quia similique eius aut cupclassitate ipsa et.
</div>
<div class="guide"></div>
</div>
<div class="container exits">
<h2>Exits</h2>
<div class="button-row">
<form>
<select class="animationlist">
<optgroup label="FadeOut">
<option value="tdFadeOut">tdFadeOut</option>
<option value="tdFadeOutDown">tdFadeOutDown</option>
<option value="tdFadeOutLeft">tdFadeOutLeft</option>
<option value="tdFadeOutUp">tdFadeOutUp</option>
<option value="tdFadeOutRight">tdFadeOutRight</option>
</optgroup>
<optgroup label="ExpandOut">
<option value="tdExpandOut">tdExpandOut</option>
<option value="tdExpandOutBounce">tdExpandOutBounce</option>
</optgroup>
<optgroup label="ShrinkOut">
<option value="tdShrinkOut">tdShrinkOut</option>
<option value="tdShrinkOutBounce">tdShrinkOutBounce</option>
</optgroup>
<optgroup label="SwingOut">
<option value="tdSwingOut">tdSwingOut</option>
</optgroup>
<optgroup label="HingeFlip">
<option value="tdHingeFlipOut" selected>tdHingeFlipOut</option>
</optgroup>
</select>
<button class="button animate">Animate</button>
</form>
</div>
<div class="target">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus eveniet unde magnam sequi, iusto, amet iste necessitatibus, impedit nam reiciendis quae corrupti earum quia similique eius aut cupclassitate ipsa et.
</div>
<div class="guide"></div>
</div>
<div class="credits">
<a href="//shakr.com/" class="shakr-logo">
<svg version="1.1" viewBox="0 0 800 800">
<g id="fills-cut">
<path class="wing red" fill="#F15B67" d="M165.8,579.3c-4.8-20.1-6.9-45.9-6.2-68.9c3-108.1,63.9-206.8,144.9-259.1
c-2.6-16.3-11.5-29.5-26.9-38.5c-40.4-23.6-87.2,4.8-113.6,51.2c-26.4,46.4-39.6,86.4-43.2,136.4c-5.2,69.8,15.3,137.7,50,192.4
C169.6,590.8,167.8,587.7,165.8,579.3z"/>
<path class="wing green" fill="#A6CE39" d="M169.1,586.3c0-2.8,0.4-5.6,0.9-8.3c1-5.6,15.6-86.8,83.6-160
c60.9-65.3,140.9-104.2,229.8-108.9c11.8-24.5,6.2-46.2-4.2-61.5c-15.2-22-65.2-56-155.6-7.6c-90.4,48.4-160.8,154-164,270.4
c-0.7,23,1.3,48.8,6.2,68.9c2.1,8.9,4,11.8,5.2,13.8c0.1,0.1,0.2,0.3,0.3,0.4C169.9,591.5,169.1,589,169.1,586.3z"/>
<path class="wing blue" fill="#33A3DC" d="M182.2,599.5c-7.2,0-13.1-5.9-13.1-13.1c0-2.8,0.4-5.6,0.9-8.3
c1-5.6,15.6-86.8,83.6-160c83.2-89.2,202-129.1,330.4-100c113.6,25.7,108,103.6,86,137.2c-22.8,34.8-68.8,53-152.8,45.6
c-71.6-6.3-136-6.4-214,23.2c-58.1,22.1-88.6,48.4-101.9,61.8c-2,2-7.9,8.2-10.8,10.7c-2.1,1.7-4.9,2.9-8,3L182.2,599.5z"/>
</g>
</svg>
</a>
<p>A project of <a href="https://www.shakr.com/" target="_blank">Shakr</a>. Fork on <a href="https://github.com/ShakrMedia/tuesday" target="_blank">Github</a>.</p>
<p>Also, take a look on <a href="http://making.shakr.com/making-tuesday/" target="_blank">how we made Tuesday</a>.</p>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('button').click(function(e) {
e.preventDefault();
var that = this;
var container = $(that).parents('.container');
var currentAnimation = container.find('.animationlist').val();
var target = container.children('.target');
if ($(that).is('.animate')) {
$(that).addClass('disabled').text('Animating...');
target.addClass('animated '+currentAnimation);
target.one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
$(that).removeClass('disabled animate').addClass('reset').text('Reset');
});
} else {
$(that).removeClass('reset').addClass('animate').text('Animate');
target.attr('class', '').addClass('target');
}
});
$('.animationlist').change(function(){
var that = this;
var container = $(that).parents('.container');
container.find('button').attr('class', '').addClass('animate').text('Animate');
container.children('.target').attr('class', '').addClass('target');
});
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-29552020-15', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>