-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html.template
378 lines (341 loc) · 21 KB
/
index.html.template
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="Incuna-transitions : arrow-left">
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/main.css">
<title>Incuna-transitions</title>
</head>
<body class="incuna-transitions-page">
<div class="inline-svg-map">
<%= svgstore('images/svg-defs.svg') %>
</div>
<!-- HEADER -->
<div class="outer header-wrap">
<header class="inner">
<a class="forkme-banner" href="https://github.com/incuna/incuna-transitions">View on GitHub</a>
<div class="header-main-content">
<div class="header-main-text">
<h1 class="project-title">Incuna-transitions</h1>
<h2 class="project-tagline">Incuna's transitions and animations library. A combination of sass mixins sourced from @IanLunn's <a href="http://ianlunn.github.io/Hover/">Hover.css</a> and page transitions from Incuna.</h2>
</div>
<div class="animation-icon-wrap">
<svg class="inline-svg animation-icon">
<use xlink:href="#svg-animation-icon"></use>
</svg>
</div>
</div>
</header>
</div>
<!-- MAIN CONTENT -->
<div class="main-content-wrap outer">
<section class="main-content inner">
<div class="example-section">
<h3>Examples</h3>
<p class="intro">This page was created with the intention of providing the Incuna design team with a way to visualise the sort of transitions and animations we can add to our sites. All of these effects are capable of being customised and fine tuned to fit the specific needs of each design.</p>
<p class="intro">We can customise animation properties like duration, timing function, and amount of movement. To learn more about the animation properties that we can affect with css have a look at <a href="https://robots.thoughtbot.com/css-animation-for-beginners#additional-animation-properties" target="_blank">this guide</a>. Below are a few simple examples.</p>
<h5>Duration:</h5>
<button class="duration-example slow">slow</button>
<button class="duration-example medium">medium</button>
<button class="duration-example fast">fast</button>
<h5>Timing function:</h5>
<button class="timing-example ease">ease</button>
<button class="timing-example ease-in">ease-in</button>
<button class="timing-example ease-out">ease-out</button>
<button class="timing-example linear">linear</button>
<h5>Movement:</h5>
<button class="movement-example small">small</button>
<button class="movement-example medium">medium</button>
<button class="movement-example large">large</button>
<p class="intro">We can also apply the transitions to a variety of elements (not just buttons).</p>
<a href="/" class="link-example underline">This is a link with Underline</a>
<a href="/" class="link-example float">This is a link with Float</a>
<a href="/" class="link-example pulse">This is a link with Pulse</a>
<p class="text-example">This is a paragraph of text with the pulse-shrink animation. <strong>Please do not actually put this transition on paragraphs of text</strong>. We are just doing it here for demonstration purposes, to show that we can. But I think we can agree that it is not a very user friendly or meaningful animation.</p>
<p class="intro">You can, of course, also use whatever colors, fonts, sizes, padding, etc. that you want.</p>
<p class="note">Note to devs: this library is still very much a work in progress so in order to achieve some of these results you may need to customise the mixin to be a bit more flexible first.</p>
</div>
<h3>Hover transitions</h3>
<p class="intro">These transitions can be applied to buttons, links, nav items and other interactive page elements. They all work on mouse over.</p>
<!-- 2D TRANSITIONS -->
<div class="button-section 2d-transitions">
<h4>2D Transitions</h4>
<button class="example-button bob">bob</button>
<button class="example-button bounce-in">bounce-in</button>
<button class="example-button bounce-out">bounce-out</button>
<button class="example-button buzz-out">buzz-out</button>
<button class="example-button buzz">buzz</button>
<button class="example-button float-up">float-up</button>
<button class="example-button float-down">float-down</button>
<button class="example-button grow-rotate">grow-rotate</button>
<button class="example-button grow">grow</button>
<button class="example-button hang">hang</button>
<button class="example-button pop">pop</button>
<button class="example-button pulse-grow">pulse-grow</button>
<button class="example-button pulse-shrink">pulse-shrink</button>
<button class="example-button pulse">pulse</button>
<button class="example-button push">push</button>
<button class="example-button rotate">rotate</button>
<button class="example-button shrink">shrink</button>
<button class="example-button skew-backward">skew-backward</button>
<button class="example-button skew-forward">skew-forward</button>
<button class="example-button skew">skew</button>
<button class="example-button wobble-fixed-top">wobble-fixed-top</button>
<button class="example-button wobble-fixed-bottom">wobble-fixed-bottom</button>
<button class="example-button wobble-move-horizontal">wobble-move-horizontal</button>
<button class="example-button wobble-move-vertical">wobble-move-vertical</button>
<button class="example-button wobble-move-diagonal-up">wobble-move-diagonal-up</button>
<button class="example-button wobble-move-diagonal-down">wobble-move-diagonal-down</button>
</div>
<!-- BACKGROUND TRANSITIONS -->
<div class="button-section background-transitions">
<h4>Background Transitions</h4>
<button class="example-button back-pulse">back-pulse</button>
<button class="example-button bounce-to-top">bounce-to-top</button>
<button class="example-button bounce-to-right">bounce-to-right</button>
<button class="example-button bounce-to-bottom">bounce-to-bottom</button>
<button class="example-button bounce-to-left">bounce-to-left</button>
<button class="example-button fade">fade</button>
<button class="example-button radial-in">radial-in</button>
<button class="example-button radial-out">radial-out</button>
<button class="example-button rectangle-in">rectangle-in</button>
<button class="example-button rectangle-out">rectangle-out</button>
<button class="example-button shutter-in-horizontal">shutter-in-horizontal</button>
<button class="example-button shutter-in-vertical">shutter-in-vertical</button>
<button class="example-button shutter-out-horizontal">shutter-out-horizontal</button>
<button class="example-button shutter-out-vertical">shutter-out-vertical</button>
<button class="example-button sweep-top">sweep-top</button>
<button class="example-button sweep-right">sweep-right</button>
<button class="example-button sweep-bottom">sweep-bottom</button>
<button class="example-button sweep-left">sweep-left</button>
</div>
<!-- BORDER TRANSITIONS -->
<div class="button-section border-transitions">
<h4>Border Transitions</h4>
<button class="example-button border-fade">border-fade</button>
<button class="example-button hollow">hollow</button>
<button class="example-button outline-in">outline-in</button>
<button class="example-button outline-out">outline-out</button>
<button class="example-button overline-from-center">overline-from-center</button>
<button class="example-button overline-from-left">overline-from-left</button>
<button class="example-button overline-from-right">overline-from-right</button>
<button class="example-button overline-reveal">overline-reveal</button>
<button class="example-button reveal">reveal</button>
<button class="example-button ripple-in">ripple-in</button>
<button class="example-button ripple-out">ripple-out</button>
<button class="example-button round-corners">round-corners</button>
<button class="example-button trim">trim</button>
<button class="example-button underline-reveal">underline-reveal</button>
<button class="example-button underline-from-center">underline-from-center</button>
<button class="example-button underline-from-left">underline-from-left</button>
<button class="example-button underline-from-right">underline-from-right</button>
</div>
<!-- ICON TRANSITIONS -->
<div class="button-section icon-transitions">
<h4>Icon Transitions</h4>
<button class="example-button icon-back">
<span>icon-back</span>
<svg class="inline-svg arrow-left">
<use xlink:href="#svg-arrow-left"></use>
</svg>
</button>
<button class="example-button icon-bob">
<span>icon-bob</span>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
</button>
<button class="example-button icon-bounce-out">
<span>icon-bounce-out</span>
<svg class="inline-svg circle-right">
<use xlink:href="#svg-circle-right"></use>
</svg>
</button>
<button class="example-button icon-bounce">
<span>icon-bounce</span>
<svg class="inline-svg headphones">
<use xlink:href="#svg-headphones"></use>
</svg>
</button>
<button class="example-button icon-buzz-out">
<span>icon-buzz-out</span>
<svg class="inline-svg alarm">
<use xlink:href="#svg-alarm"></use>
</svg>
</button>
<button class="example-button icon-buzz">
<span>icon-buzz</span>
<svg class="inline-svg alarm">
<use xlink:href="#svg-alarm"></use>
</svg>
</button>
<button class="example-button icon-down">
<span>icon-down</span>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
</button>
<button class="example-button icon-drop">
<span>icon-drop</span>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
</button>
<button class="example-button icon-float-away">
<span>icon-float-away</span>
<svg class="inline-svg upload">
<use xlink:href="#svg-upload"></use>
</svg>
<svg class="inline-svg upload">
<use xlink:href="#svg-upload"></use>
</svg>
</button>
<button class="example-button icon-float">
<span>icon-float</span>
<svg class="inline-svg upload">
<use xlink:href="#svg-upload"></use>
</svg>
</button>
<button class="example-button icon-forward">
<span>icon-forward</span>
<svg class="inline-svg arrow-right">
<use xlink:href="#svg-arrow-right"></use>
</svg>
</button>
<button class="example-button icon-grow-rotate">
<span>icon-grow-rotate</span>
<svg class="inline-svg circle-left">
<use xlink:href="#svg-circle-left"></use>
</svg>
</button>
<button class="example-button icon-grow">
<span>icon-grow</span>
<svg class="inline-svg circle-right">
<use xlink:href="#svg-circle-right"></use>
</svg>
</button>
<button class="example-button icon-hang">
<span>icon-hang</span>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
</button>
<button class="example-button icon-pop">
<span>icon-pop</span>
<svg class="inline-svg printer">
<use xlink:href="#svg-printer"></use>
</svg>
</button>
<button class="example-button icon-pulse-grow">
<span>icon-pulse-grow</span>
<svg class="inline-svg home">
<use xlink:href="#svg-home"></use>
</svg>
</button>
<button class="example-button icon-pulse-shrink">
<span>icon-pulse-shrink</span>
<svg class="inline-svg home">
<use xlink:href="#svg-home"></use>
</svg>
</button>
<button class="example-button icon-pulse">
<span>icon-pulse</span>
<svg class="inline-svg home">
<use xlink:href="#svg-home"></use>
</svg>
</button>
<button class="example-button icon-push">
<span>icon-push</span>
<svg class="inline-svg circle-right">
<use xlink:href="#svg-circle-right"></use>
</svg>
</button>
<button class="example-button icon-rotate">
<span>icon-rotate</span>
<svg class="inline-svg loop">
<use xlink:href="#svg-loop"></use>
</svg>
</button>
<button class="example-button icon-shrink">
<span>icon-shrink</span>
<svg class="inline-svg pencil">
<use xlink:href="#svg-pencil"></use>
</svg>
</button>
<button class="example-button icon-sink-away">
<span>icon-sink-away</span>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
</button>
<button class="example-button icon-sink">
<span>icon-sink</span>
<svg class="inline-svg download">
<use xlink:href="#svg-download"></use>
</svg>
</button>
<button class="example-button icon-spin">
<span>icon-spin</span>
<svg class="inline-svg loop">
<use xlink:href="#svg-loop"></use>
</svg>
</button>
<button class="example-button icon-up">
<span>icon-up</span>
<svg class="inline-svg circle-up">
<use xlink:href="#svg-circle-up"></use>
</svg>
</button>
<button class="example-button icon-wobble-horizontal">
<span>icon-wobble-horizontal</span>
<svg class="inline-svg circle-right">
<use xlink:href="#svg-circle-right"></use>
</svg>
</button>
<button class="example-button icon-wobble-vertical">
<span>icon-wobble-vertical</span>
<svg class="inline-svg circle-down">
<use xlink:href="#svg-circle-down"></use>
</svg>
</button>
</div>
<!-- SHADOW GLOW TRANSITIONS -->
<div class="button-section shadow-glow-transitions">
<h4>Shadow and Glow Transitions</h4>
<button class="example-button box-shadow-inset">box-shadow-inset</button>
<button class="example-button box-shadow-outset">box-shadow-outset</button>
<button class="example-button float-shadow">float-shadow</button>
<button class="example-button glow">glow</button>
<button class="example-button grow-shadow">grow-shadow</button>
<button class="example-button shadow-radial">shadow-radial</button>
<button class="example-button shadow">shadow</button>
</div>
<!-- SPEECH BUBBLES -->
<div class="button-section speech-bubbles">
<h4>Speech Bubbles</h4>
<button class="example-button bubble-bottom">bubble-bottom</button>
<button class="example-button bubble-float-bottom">bubble-float-bottom</button>
<button class="example-button bubble-float-left">bubble-float-left</button>
<button class="example-button bubble-float-right">bubble-float-right</button>
<button class="example-button bubble-float-top">bubble-float-top</button>
<button class="example-button bubble-left">bubble-left</button>
<button class="example-button bubble-right">bubble-right</button>
<button class="example-button bubble-top">bubble-top</button>
</div>
<h3>Still to come</h3>
<p class="intro">We will be updating this page to show how some of these animations can be used on button icons rather than the buttons themselves (we just need to fix those mixins first). We will also be adding some demonstrations for some of our page transitions, for example for expanding and collapsing content.</p>
</section>
</div>
<!-- FOOTER -->
<div class="footer-wrap outer">
<footer class="inner">
<p class="copyright">Incuna-transitions maintained by <a href="https://github.com/incuna">Incuna Ltd.</a></p>
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>