forked from anythingcodes/gdi-intermediate-html-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass2.html
963 lines (906 loc) · 50.6 KB
/
class2.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
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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Girl Develop It - Intermediate HTML + CSS, Class 2</title>
<meta name="description" content="Girl Develop It's Intermediate HTML and CSS course, customized by Liz Shaw">
<meta name="author" content="Liz Shaw">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/simple.css" id="theme">
<!-- For syntax highlighting -->
<!-- light editor<link rel="stylesheet" href="lib/css/light.css">-->
<!-- dark editor-->
<link rel="stylesheet" href="lib/css/dark.css">
<link rel="stylesheet" href="lib/css/zenburn.css">
<link rel="stylesheet" href="plugin/accessibility-helper/css/accessibility-helper.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if (window.location.search.match(/print-pdf/gi)) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="css/print/pdf.css" type="text/css" media="print">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Code Your Own Website -->
<section>
<h2>Code Your Own Website</h2>
<img src="img/circle-gdi-logo.png" alt="GDI Logo" style="box-shadow:none" />
<h3>Intermediate HTML + CSS</h3>
<p>
<small>Class 2</small>
</p>
</section>
<!-- Welcome-->
<section class="hide-pdf">
<h3>Welcome!</h3>
<div class = "left-align">
<p>Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.</p>
<p class ="green"><br />Some "rules":</p>
<ul>
<li>We are here for you!</li>
<li>Every question is important</li>
<li>Help each other</li>
<li>Have fun</li>
</ul>
</div>
</section>
<!-- Housekeeping -->
<section data-background="#f05b62">
<h1 style="color: #fafafa;font-size:3.7em">First, some housekeeping</h1>
</section>
<section>
<h2>Let's Develop It!</h2>
<ol>
<li>Open your <code>index.html</code> file from last class and change <span class="blue">My Home</span> to <span class="blue">Africa</span></li>
<li>Link <span class="blue">Africa</span> to <code>africa.html</code>, <span class="blue">My Diet</span> to <code>diet.html</code>, and <span class="blue">Stripes</span> to <code>stripes.html</code></li>
</ol>
<img src="images/gdi-profile-layout.png" alt="Homepage of the project" />
</section>
<section>
<h3>Our Class Project</h3>
<p>We're going to code several different page templates</p>
<ol style="font-size:80%">
<li><strong>Homepage</strong>
<ul>
<li><a href="workshop-files/designs/home.png" target="_blank">Design image »</a></li>
<li><a href="workshop-files/designs/home.psd" target="_blank">Download PSD (optional; requires Photoshop) »</a></li>
</ul>
</li>
<li><strong>Africa</strong> (a <span class="blue">two-column</span> template with a <span class="blue">left sidebar</span>)
<ul>
<li><a href="workshop-files/designs/africa.png" target="_blank">Design image »</a></li>
<li><a href="workshop-files/designs/africa.psd" target="_blank">Download PSD (optional; requires Photoshop) »</a></li>
</ul>
</li>
<li><strong>My Diet</strong> (a <span class="blue">two-column</span> template with a <span class="blue">right sidebar</span>)
<ul>
<li><a href="workshop-files/designs/diet.png" target="_blank">Design image »</a></li>
<li><a href="workshop-files/designs/diet.psd" target="_blank">Download PSD (optional; requires Photoshop) »</a></li>
</ul>
</li>
<li><strong>Stripes</strong> (a <span class="blue">one-column</span> template)
<ul>
<li><a href="workshop-files/designs/stripes.png" target="_blank">Design image »</a></li>
<li><a href="workshop-files/designs/stripes.psd" target="_blank">Download PSD (optional; requires Photoshop) »</a></li>
</ul>
</li>
</ol>
</section>
<!-- Let's Get Coding! -->
<section data-background="#f05b62">
<h1 style="color: #fafafa;font-size:3.7em">Let's Get Coding!</h1>
</section>
<!-- Border Radius -->
<section>
<h3>Property: <em>border-radius</em></h3>
<p><span class="green">border-radius</span> rounds the corners of an element</p>
<p class="fragment">No image editing required! The <em>border-radius</em> property is part of <span class="blue">CSS3</span> (the latest version of CSS)</p>
</section>
<section>
<h3><em>border-radius</em> with Four Values</h3>
<p>Clockwise from the top left</p>
<pre class="css"><code>selector {
border-radius: topLeft topRight bottomRight bottomLeft;
}</code></pre><p></p>
<div class="fragment">
<pre class="css"><code>img {
border-radius: 10px 30px 60px 150px;
}</code></pre>
<p class="fragment"><img style="border-radius:0;box-shadow:none;" src="img/border-radius-kitten.png" /><small><br />becomes</small><img style="box-shadow:none;border-radius:10px 30px 60px 150px" src="img/border-radius-kitten.png" class="fragment" /></p>
</div>
</section>
<section>
<h3><em>border-radius</em> with Two Values</h3>
<pre class="css"><code>selector {
border-radius: topLeftAndBottomRight topRightAndBottomLeft;
}</code></pre>
<p></p>
<pre class="css fragment"><code>img {
border-radius: 10px 150px;
}</code></pre>
<p class="fragment"><img style="box-shadow:none;border-radius:10px 150px" src="img/border-radius-kitten.png" /></p>
</section>
<section>
<h3><em>border-radius</em> with One Value</h3>
<pre class="css"><code>selector {
border-radius: all;
}</code></pre>
<p></p>
<pre class="fragment css"><code>img {
border-radius: 40px;
}</code></pre>
<p class="fragment"><img style="box-shadow:none;border-radius:40px" src="img/border-radius-kitten.png" /></p>
</section>
<section>
<h3>Using <em>border-radius</em> to Make an Element into a Circle</h3>
<pre class="css"><code>selector {
border-radius: 50%;
}</code></pre>
<p></p>
<pre class="css fragment"><code>img {
border-radius: 50%;
}</code></pre>
<p class="fragment"><img style="box-shadow:none;border-radius:50%;margin-bottom:0;" src="img/border-radius-kitten.png" /></p>
<p class="fragment"><small><span class="orange">Note:</span> The element must be square to make a perfect circle.<br />Otherwise <code>border-radius: 50%;</code> will make an oval.</small></p>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's make our profile image into a circle<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- CSS Coding Tip -->
<section>
<h3>CSS Coding Tip #1</h3>
<p>Organize your CSS by section and use comments for each section</p>
<pre class="css">
<code>/* Header */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.54);
}
nav {
float: right;
}
/* Banner */
#banner {
height: 483px;
}
#banner img {
width:154px;
border-radius: 50%;
}</code>
</pre>
<p><small>This will make your life much easier down the road, as you add more CSS</small></p>
</section>
<!-- Fonts -->
<section data-background="#f05b62">
<h1 style="color: #fafafa;">Custom Fonts</h1>
<h3 style="color: #fafafa;">Add some pizzazz to your page</h3>
</section>
<section>
<h3>Meet Google Web Fonts</h3>
<p class="fragment">Tired of using the same old, boring "web-safe" fonts?<br /><small>(No offense, <a href="http://cssfontstack.com" target="_blank">CSSFontStack.com</a>)</small></p>
<p class="fragment">Use <a href="http://google.com/fonts" target="_blank">Google Web Fonts</a>! Google has hundreds of free fonts that have been optimized for the web, and are ready for us to use!</p>
<p class="fragment">Google Web Fonts don’t rely on fonts installed on users’ computers</p>
<p class="fragment">Instead, these fonts are stored on Google’s servers and served to your website (like <a href="http://lorempixel.com/500/400/abstract" target="_blank">an image from another server</a> is served to your website)</p>
</section>
<section>
<h3>Custom Fonts in Our Design</h3>
<p class="fragment">In our design, we've used <span class="blue">Lato</span> for the body and <span class="blue">Bree Serif</span> for the headlines</p>
<p class="fragment">You can use any fonts you'd like!</p>
<div class="fragment">
<img src="images/lato.png" alt="lato" style="width: 40%; float: left;" />
<img src="images/bree.png" alt="bree" style="width: 40%; float: right;" />
</div>
</section>
<section>
<h3>How To Use Google Fonts</h3>
<ol>
<li class="fragment">Search <a href="http://google.com/fonts" target="_blank">http://google.com/fonts</a> and add fonts to your collection (we recommend <span class="green">1-2 fonts per site</span>)</li>
<li class="fragment" style="margin-top:.5em;"><span class="blue">Within your HTML file</span>:
<ul>
<li>Paste the <span class="orange">Standard</span> HTML that Google prepares for you above the <code><link></code> to your CSS file<br /><pre class="html"><code><link href='https://fonts.googleapis.com/css?family=Lato|Bree+Serif' rel='stylesheet' type='text/css' /></code></pre></li>
</ul>
</li>
<li class="fragment" style="margin-top:.5em;"><span class="blue">Within your CSS file</span>:
<ul>
<li>Use the <code>font-family</code> properties Google provides<br /><pre class="css">
<code>body {
font-family: 'Lato', sans-serif;
}</code>
</pre></li>
</ul>
</li>
</ol>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Add some Google Web Fonts to your site</p>
<p><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<section>
<h2>Let's Develop It!</h2>
<p>While we're at it, let's also clean up our header and banner/hero to match the design</p>
<p><small>Developers typically get these measurements from Photoshop</small></p>
<p><img src="workshop-files/designs/header-measurements.png" alt="today's project" /></p>
</section>
<!-- Coding Process Tip -->
<section>
<h3>Coding Process Tip #1</h3>
<p>Make your <span class="blue">global, site-wide</span> elements first</p>
<p>For example, our project's header, banner/hero, and footer are global, site-wide elements</p>
<p><img src="workshop-files/designs/home.png" alt="today's project" style="border:0;border-radius:0;max-height:300px;" /> <img src="workshop-files/designs/africa.png" alt="today's project" style="border:0;border-radius:0;max-height:300px;" /> <img src="workshop-files/designs/diet.png" alt="today's project" style="border:0;border-radius:0;max-height:300px;" /></p>
</section>
<!-- Display -->
<section>
<h3>Styling the Navigation</h3>
<p class="blue">Recap of <code>display:inline;</code> versus <code>display:block;</code></h3>
<div class="fragment">
<p data-height="268" data-theme-id="0" data-slug-hash="RWjLrR" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/RWjLrR/'>Inline vs. Block</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
<p class="fragment"><span class="green">Block elements</span> push sibling elements to another line. <span class="green">Inline elements</span> allow sibling elements to sit to their right and left.</p>
</div>
</section>
<section>
<h3>Houston, we have a problem</h3>
<p><img src="workshop-files/designs/nav-measurements.png" alt="today's project" /></p>
<p class="blue">Our navigation links need:</p>
<ol>
<li class="fragment"><span class="green">To allow other links to their left and right</span><br />... meaning we need a <code>display</code> value that <strong>doesn't</strong> force sibling elements to a new line<br /><small class="fragment" style="text-indent:50px;">(like <code>display:inline;</code>)</small></li>
<li class="fragment"><span class="green">26px of top and bottom padding to push down the content</span> (e.g. "Africa")<br />... meaning we need a <code>display</code> value whose top and bottom padding is relative to the box itself, <em>not</em> relative to the text baseline<br /><small class="fragment" style="text-indent:50px;">(like <code>display:block;</code>)</small></li>
</ol>
<p class="fragment orange">But these needs are at odds with one another! 👎</p>
</section>
<!-- inline-block -->
<section data-background="#f05b62">
<h1 style="color: #fafafa;">Enter</h1>
<h3 style="color: #fafafa;"><code>display:inline-block;</code></h3>
</section>
<!-- Property Comparison -->
<section>
<h3>Property: <code>display</code></h3>
<table class="data" style="font-size:60%">
<tr>
<th></th>
<th>Inline</th>
<th>Block</th>
<th>Inline-Block</th>
</tr>
<tr>
<td>Can have a set width & height</td>
<td><span style="color:red">✗</span></td>
<td><span class="green">✔</span></td>
<td class="fragment"><span class="green">✔</span></td>
</tr>
<tr>
<td>Allow other elements to their left & right<br />(i.e. don't force sibling elements to new line)</td>
<td><span class="green">✔</span></td>
<td><span style="color:red">✗</span></td>
<td class="fragment" style="background-color:rgba(228, 255, 0, 0.47);"><span class="green">✔</span></td>
</tr>
<tr>
<td>Respect left & right margins</td>
<td><span class="green">✔</span></td>
<td><span class="green">✔</span></td>
<td class="fragment"><span class="green">✔</span></td>
</tr>
<tr>
<td>Respect top & bottom margins & padding</td>
<td><span style="color:red">✗</span></td>
<td><span class="green">✔</span></td>
<td class="fragment" style="background-color:rgba(228, 255, 0, 0.47);"><span class="green">✔</span></td>
</tr>
<tr class="fragment" style="background:rgba(255, 192, 203, 0.27);">
<td><strong>NEW:</strong> By default is as wide as its content</td>
<td><span class="green">✔</span></td>
<td><span style="color:red">✗</span></td>
<td><span class="green">✔</span></td>
</tr>
</table>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<ol>
<li>Let's use <code>display:inline-block;</code> on our navigation's anchor links and add a hover state</li>
<li>We'll also use <code>display:inline-block;</code> on the banner's <code>span</code> so we no longer need to set a width</li>
</ol>
<p><img src="workshop-files/designs/nav-measurements.png" alt="today's project" /></p>
<p><span class="blue"><strong>Bonus Question</strong></span>: Where is the 16px coming from?</p>
<!-- Liz Note: Show how to activate hover state in Inspector -->
</section>
<!-- SVG -->
<section>
<h3>SVG</h3>
<p><span class="orange">SVG</span>: <span class="orange">S</span>calable <span class="orange">V</span>ector <span class="orange">G</span>raphic</p>
<p class="fragment">SVG graphics do not lose any quality if they are zoomed, which is perfect for modern <span class="green">retina displays</span></p>
<p class="fragment">By comparison, <span class="green">raster graphics</span> (PNGs, JPEGs, GIFs, etc.) lose quality when zoomed</p>
<p class="fragment">
<img src="img/svg-vs-png.png" alt="SVG versus PNG" />
</p>
</section>
<section>
<h3>SVG Uses</h3>
<p class="fragment">SVGs are typically used for <span class="blue">typography</span>, <span class="blue">icons</span>, and other <span class="blue">graphics with clearly-defined lines</span>, while raster graphics are typically used for photography</p>
<p class="fragment">SVGs are often used for animation, since each component of an SVG can be <a href="https://css-tricks.com/animating-svg-css/" target="_blank">animated with CSS</a></p>
</section>
<!-- LIZ: Insert section about creating an SVG and referencing it in HTML -->
<section>
<h3>Using SVG within <code><img></code></h3>
<p class="fragment">Reference the .svg file like any other image:</p>
<pre class="html fragment">
<code><img src="image.svg" alt="My image" /></code>
</pre>
<p class="fragment">SVG is new enough that <a href="http://caniuse.com/#feat=svg" target="_blank">only modern browsers support it</a></p>
<p class="fragment"><small class="green"><strong>Tip:</strong> Use <a href="http://caniuse.com" target="_blank">caniuse.com</a> to check browser compatibility of modern HTML5 & CSS3 features</small></p>
</section>
<!-- Let's Develop It -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's add SVG icons to our footer!<br /> Since we need to add a <span class="orange">top margin</span> to our <code><li></code>s, <code>display:inline-block;</code> will also come in handy here.</p>
<p><img style="border:none;border-radius:0;" src="workshop-files/designs/footer-measurements.png" alt="Footer measurements" /></p>
</section>
<!-- Responsive Setup -->
<section>
<h3>Responsive Setup</h3>
<p class="blue">Browser View</p>
<div class="fragment" style="width:60%;float:left">
<p>Minimize your browser window. Things should look responsive!</p>
</div>
<div class="fragment" style="width:40%;float:right">
<img src="img/mobile-chrome.png" style="box-shadow:none;" alt="Mobile view for Chrome" />
</div>
</section>
<section>
<h3>Responsive Setup</h3>
<p class="blue">Device View</p>
<div class="fragment" style="width:65%;float:left">
<p>On an actual device, however, things look rough:</p>
</div>
<div class="fragment" style="width:35%;float:right;">
<img src="img/mobile-phone.png" style="box-shadow:none;max-width:300px" alt="Viewed on a phone" />
</div>
</section>
<section>
<h3>How do we make our page load responsively in devices?</h3>
<div style="width:50%;float:left;"><img src="img/viewport-scaling.jpg" alt="Viewport scaling" /></div>
<div class="fragment" style="width:50%;float:right;">
<p>Add a <span class="green">viewport</span></p>
<p class="fragment">Without a viewport, mobile devices will render the page at a typical desktop screen width, scaled to fit the screen</p>
</div>
<p class="fragment" style="clear:both;">Add the following to the <code><head></code>:</p>
<pre class="html fragment"><code><meta name="viewport" content="width=device-width, initial-scale=1" /></code></pre>
</section>
<section>
<h3>Emulating a Device</h3>
<p>Chrome has a built-in <span class="blue">emulator</span> where you can preview how your page might look on a device</p>
<ol style="font-size:80%;line-height:1.3">
<li class="fragment">In Chrome, right-click your page and click <span class="orange">Inspect Element</span></li>
<li class="fragment"><img src="img/chrome-device-mode.gif" style="float:right;" alt="Toggle device mode" />Within the Developer Tools panel, click the <span class="orange">Toggle device mode</span> icon (<img src="img/chrome-toggle-device-icon.gif" alt="Toggle device mode icon in Chrome" style="margin:0;box-shadow:none;border:0;" />)</li>
<li class="fragment">Choose from the <span class="orange">Device</span> from the menu and then refresh the page<br /><img src="img/chrome-device-menu.png" alt="Choosing from devices" style="max-height:300px" /></li>
<li class="fragment">Click the <span class="orange">Toggle device mode</span> icon (<img src="img/chrome-toggle-device-icon.gif" alt="Toggle device mode icon in Chrome" style="margin:0;box-shadow:none;border:0;" />) to stop emulating</li>
</ol>
</section>
<section>
<h3>Emulating a Device</h3>
<p class="blue">Other Options</p>
<ol>
<li><a href="http://browserstack.com" target="_blank">BrowserStack</a></li>
<li><a href="http://appletoolbox.com/2014/05/use-web-inspector-debug-mobile-safari/" target="_blank">Safari's Inspector</a> - Plug your Apple device into a computer and troubleshoot on an actual device — not an emulator!</li>
</ol>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's add a viewport to your page!</p>
<p> </p>
<pre class="html"><code><meta name="viewport" content="width=device-width, initial-scale=1" /></code></pre>
<p><br />Once we're done, let's check out the page in Chrome's emulator</p>
</section>
<section data-background="#f05b62">
<h1 style="color: #fafafa;font-size:3.7em;padding-top:2em;">Animation time!</h1>
<!-- Completely Unnecessary Bender -->
<div id="bender-body"><div id="page"><div id="container"> <div class="foot-left foot"> <div class="f1"></div><div class="f2"></div><div class="first leg1"> <div class="next1 leg1"> <div class="next1 leg1"> <div class="next1 leg1"> <div class="next1 leg1"></div></div></div></div></div></div><div class="foot-right foot"> <div class="f1"></div><div class="f2"></div><div class="first leg2"> <div class="next2 leg2"> <div class="next2 leg2"> <div class="next2 leg2"> <div class="next2 leg2"></div></div></div></div></div></div><div id="b-body"> <div id="b1"></div><div id="b2"></div><div id="b3"></div><div id="head"> <div id="h1"></div><div id="h2"></div><div id="h3"></div><div id="h4"></div><div id="h5"><span></span></div><div id="eyes"> <div id="e"> <div id="e1"> <div class="eye"></div><span></span> </div><div id="e2"> <div class="eye"></div><span></span> </div></div></div><div id="mouth"> <span></span> <span></span> <span></span> <span></span> <span></span> <div id="m1"></div><div id="m2"></div></div></div><div id="b4"></div><div id="b5"> <div class="b51"> <div class="b51"> <div class="b51"> <div class="b51"> <div id="ab"> <div class="a1"></div><div id="a2"></div><div class="a31 a3"></div><div class="a32 a3"></div><div class="a33 a3"></div></div></div></div></div></div></div><div id="b6"></div><div id="b7"> <div class="b71"> <div class="b71"> <div class="b71"> <div class="b71"> <div id="ac"> <div class="a1"></div><div class="a2"></div><div class="a31 a3"></div><div class="a32 a3"></div><div class="a3 a33"></div></div></div></div></div></div></div><div id="b8"> <span></span> </div><div id="b9"></div></div></div></div></div>
<p><small><a target="_blank" style="color:white;" href="http://codepen.io/anythingcodes/pen/vNbjMM?editors=110">http://codepen.io/anythingcodes/pen/vNbjMM?editors=110</a></small></p>
</section>
<section>
<h3>Property: <em>transition</em></h3>
<p class="fragment">The <code>transition</code> CSS property lets us create awesome animations without any Javascript</p>
<p class="fragment">Each <code>transition</code> property value requires:</p>
<ol>
<li class="fragment">The <span class="blue">CSS property</span> you want to animate (e.g. <em>width</em>)</li>
<li class="fragment">The <span class="blue">duration</span> of the effect in milliseconds or seconds (e.g. <em>2s</em>)</li>
</ol>
<div class="fragment">
<pre class="css">
<code>
selector {
transition: width 2s;
}
</code>
</pre>
</div>
</section>
<section>
<h3>How do you trigger animations?</h3>
<p class="fragment">With a <span class="orange">state change</span> (<code>:hover</code>, <code>:checked</code>, <code>:focus</code>, etc.)</p>
<p class="fragment">Every animation has a <span class="green">before selector</span> and an <span class="green">after selector</span><br /><img src="img/transition-hover.gif" alt="A hover state" /></p>
<p class="fragment"><small><span class="blue">Before Selector:</span> The element as it is naturally</small></p>
<p class="fragment"><small><span class="blue">After Selector:</span> The element when it is interacted with (e.g. when it is hovered over)</small></p>
</section>
<section>
<h3>Before and After Selectors</h3>
<p class="fragment">In the <span class="green">before selector</span>, apply <code>transition</code> along with <a href="http://leaverou.github.io/animatable/" target="_blank">what properties</a> change during the transition</p>
<p class="fragment">The <span class="green">after selector</span> indicates the values after a transition is complete. Never use <code>transition</code> on the after selector.</p>
<table class="data" style="margin:0 auto;width:100%;">
<tr class="fragment">
<th style="padding:0;">Before Selector</th>
<th style="padding:0">After Selector</th>
<th style="padding:0">Example</th>
</tr>
<tr style="padding:0;" class="fragment">
<td style="padding:0;">
<pre class="css">
<code style="padding:5px">selector {
width: 100px;
transition: width 2s;
}</code>
</pre>
</td>
<td style="padding:0;">
<pre class="css">
<code style="padding:5px">selector:hover {
width: 500px;
}</code>
</pre>
</td>
<td style="padding:0;">
<a href="http://codepen.io/anon/pen/YygzBr?editors=110" target="_blank">Example (before) »</a><br /><a href="http://codepen.io/anon/pen/xwBZjP?editors=110" target="_blank">Example (after) »</a>
</td>
</tr>
<tr style="padding:0;" class="fragment">
<td style="padding:0;">
<pre class="css">
<code style="padding:5px">selector {
background: seagreen;
transition: background 3.5s;
}</code>
</pre>
</td>
<td style="padding:0;">
<pre class="css">
<code style="padding:5px">selector:active {
background: fuchsia;
}</code>
</pre>
</td>
<td style="padding:0;">
<a href="http://codepen.io/lizmhs/pen/GpeRex?editors=110" target="_blank">Example (before) »</a><br /><a href="http://codepen.io/anon/pen/NGJxzW?editors=110" target="_blank">Example (after) »</a>
</td>
</tr>
</table>
</section>
<!-- Let's Develop It! -->
<section>
<h3>Let's Develop It!</h3>
<p>Let's add a transition to our navigation menu links!</p>
</section>
<section>
<h3>Animation Recap</h3>
<ul>
<li class="fragment">Add <code>transition</code> to the <span class="blue">before state</span></li>
<li class="fragment"><span class="green">Remember:</span> <code>transition</code> accepts two values,<br /><u class="fragment"> the CSS property </u> and <u class="fragment"> the duration </u> of the animation</li>
</ul>
<table class="data fragment" style="margin:1em auto;width:100%;">
<tr>
<th style="padding:0;">Before Selector</th>
<th style="padding:0">After Selector</th>
</tr>
<tr style="padding:0;">
<td class="fragment" style="padding:0;">
<pre class="css">
<code style="padding:5px">selector {
width: 100px;
transition: width 2s;
}</code>
</pre>
</td>
<td class="fragment" style="padding:0;">
<pre class="css">
<code style="padding:5px">selector:hover {
width: 500px;
}</code>
</pre>
</td>
</tr>
</table>
</section>
<section>
<h3>Animating Multiple Properties</h3>
<p class="fragment">To animate multiple properties, separate each effect with a comma</p>
<pre class="css fragment">
<code>selector {
transition: width 2s, background 5s;
}</code>
</pre>
<div class="fragment">
<p data-height="128" data-theme-id="0" data-slug-hash="GpLwGr" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/GpLwGr/'>Animating Multiple Properties - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3>Animating Multiple Properties</h3>
<p class="blue">Method 2: All Properties</p>
<p class="fragment">Use <code>all</code> to seamlessly transition all properties from before to after states at the <span class="green">same duration</span></p>
<pre class="css fragment">
<code>selector {
transition: all 3s;
}</code>
</pre>
<div class="fragment">
<p data-height="131" data-theme-id="0" data-slug-hash="gayQdW" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/gayQdW/'>Transitions Using 'all' - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<div class="fragment">
<p style="color:firebrick"><small><br />Sounds great, right? However, <code>all</code> has performance drawbacks, so use it sparingly! (<a href="http://codepen.io/anythingcodes/pen/NGmEoY/?editors=110" target="_blank">Example »</a>)</small></p>
</div>
</section>
<section>
<h3>Property: <em>box-shadow</em></h3>
<p>The <code>box-shadow</code> CSS3 property is often used to give a 3D effect when an element is hovered over</p>
<pre class="css fragment">
<code>selector {
box-shadow: horizontalShadow verticalShadow blurDistance color;
box-shadow: 10px 10px 5px grey;
}</code>
</pre>
<div class="fragment">
<p data-height="200" data-theme-id="0" data-slug-hash="zvQBKm" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/zvQBKm/'>CSS3 Generator: box-shadow </a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<p class="fragment">Don't worry about memorizing this — use a <a href="http://css3gen.com/box-shadow/" target="_blank">generator</a> instead!</p>
</section>
<section>
<h3>Property: <em>opacity</em></h3>
<p><code>opacity</code> changes the opacity of the <span class="green">whole element</span></p>
<pre class="css">
<code>selector {
opacity: 0.5;
}</code>
</pre>
<p class="fragment">The value can be a number between <span class="blue">0 (translucent)</span> and <span class="blue">1.0 (opaque)</span></p>
<div class="fragment">
<p data-height="268" data-theme-id="0" data-slug-hash="WQBGBq" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/WQBGBq/'>Opacity vs. RBGA</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3><em>opacity</em> in Hover States</h3>
<p class="fragment"><code>opacity</code> is commonly used in hover states to reveal transparent content</p>
<div class="fragment">
<p data-height="337" data-theme-id="0" data-slug-hash="XmwNdM" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/XmwNdM/'>Opacity and Hover - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h2>Let's Develop It!</h2>
<p>You may have noticed that one of these things is not like the other. That's because one is a hover state!</p>
<p>Let's animate multiple properties (for example, <code>box-shadow</code> and <code>opacity</code>) for the hover states in the <span class="blue">About</span> section.</p>
<p><img src="img/home-hover.jpg" alt="Hover state for home image" /></p>
</section>
<section data-background="#f05b62">
<h1 style="color: #fafafa;font-size:3.7em">Additional Animation Effects</h1>
</section>
<section>
<h3>Property: <em>transition-delay</em></h3>
<p>Use <code>transition-delay</code> to delay when an animation begins</p>
<pre class="css fragment">
<code>selector {
transition: width 1s;
transition-delay: 3s;
}</code>
</pre>
<div class="fragment">
<p data-height="338" data-theme-id="0" data-slug-hash="PPgxEp" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/PPgxEp/'>Transition Delays</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3>Property:<br/><em>transition-timing-function</em></h3>
<p class="fragment">The <span class="blue">timing function</span> changes how fast or slow the animation is at parts of the animation</p>
<pre class="css fragment" style="font-size:15px">
<code>selector {
transition: width 3.5s;
transition-timing-function: ease;
transition-timing-function: linear;
transition-timing-function: ease-in;
transition-timing-function: ease-out;
transition-timing-function: ease-in-out;
transition-timing-function: cubic-bezier(n,n,n,n);
}</code>
</pre>
<div class="fragment">
<p data-height="290" data-theme-id="0" data-slug-hash="JYVwgr" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/JYVwgr/'>Transition Timing Functions</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<p class="fragment"><small><strong>Fun fact</strong>: The <span class="blue">timing function</span> is sometimes called the <span class="blue">speed curve</span></small></p>
</section>
<section>
<h3>Property:<br /><em>transition-timing-function</em></h3>
<p class="blue">Additional Notes</p>
<p class="fragment">If you don't specify a timing function, <span class="orange">ease</span> is used</p>
<p class="fragment">With <span class="orange">cubic-bezier</span>, you can create your own timing function</p>
<p class="fragment">Use <a href="http://cubic-bezier.com/" target="_blank">cubic-bezier.com</a> to make your own timing function, and compare it to the built-in timing functions (such as <span class="green">ease</span> and <span class="green">linear</span>)</p>
</section>
<section>
<h3>Property: <em>transform</em></h3>
<p class="fragment">Use <code>transform</code> to rotate, scale, skew, change the perspective, and <a href="http://www.w3schools.com/cssref/css3_pr_transform.asp" target="_blank">much more</a></p>
<pre class="css fragment">
<code>selector {
transform: translate3d(0, -3px, 0);
transform: rotate(360deg);
/* and more! */
}</code>
</pre>
<p class="fragment"><code>transform</code> has too many values to list — use <a href="http://www.css3maker.com/css3-transform.html" target="_blank">CSS3Maker</a> or <a href="http://css3please.com/" target="_blank">CSS3, please!</a> to generate them</p>
<p class="fragment">A transformation is often animated with <code>transition</code></p>
<div class="fragment">
<p data-height="179" data-theme-id="0" data-slug-hash="YyMBVR" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/YyMBVR/'>Transition + Transform - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3>Animation Recap</h3>
<ul>
<li class="fragment">Add <code>transition</code> to the <span class="blue">before state</span></li>
<li class="fragment"><span class="green">Remember:</span> <code>transition</code> accepts two values,<br /><u class="fragment"> the CSS property </u> and <u class="fragment"> the duration </u> of the animation</li>
</ul>
<table class="data fragment" style="margin:1em auto;width:100%;">
<tr>
<th style="padding:0;">Before Selector</th>
<th style="padding:0">After Selector</th>
</tr>
<tr style="padding:0;">
<td class="fragment" style="padding:0;">
<pre class="css">
<code style="padding:5px">selector {
width: 100px;
transition: width 2s;
}</code>
</pre>
</td>
<td class="fragment" style="padding:0;">
<pre class="css">
<code style="padding:5px">selector:hover {
width: 500px;
}</code>
</pre>
</td>
</tr>
</table>
</section>
<section>
<h3>Animating Multiple Properties</h3>
<p class="fragment">To animate multiple properties, separate each effect with a comma</p>
<pre class="css fragment">
<code>selector {
transition: width 2s, background 5s;
}</code>
</pre>
<div class="fragment">
<p data-height="128" data-theme-id="0" data-slug-hash="GpLwGr" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/GpLwGr/'>Animating Multiple Properties - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3>Animating Multiple Properties</h3>
<p class="blue">Method 2: All Properties</p>
<p class="fragment">Use <code>all</code> to seamlessly transition all properties from before to after states at the <span class="green">same duration</span></p>
<pre class="css fragment">
<code>selector {
transition: all 3s;
}</code>
</pre>
<div class="fragment">
<p data-height="131" data-theme-id="0" data-slug-hash="gayQdW" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/gayQdW/'>Transitions Using 'all' - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<div class="fragment">
<p style="color:firebrick"><small><br />Sounds great, right? However, <code>all</code> has performance drawbacks, so use it sparingly! (<a href="http://codepen.io/anythingcodes/pen/NGmEoY/?editors=110" target="_blank">Example »</a>)</small></p>
</div>
</section>
<section>
<h3>Property: <em>box-shadow</em></h3>
<p>The <code>box-shadow</code> CSS3 property is often used to give a 3D effect when an element is hovered over</p>
<pre class="css fragment">
<code>selector {
box-shadow: horizontalShadow verticalShadow blurDistance color;
box-shadow: 10px 10px 5px grey;
}</code>
</pre>
<div class="fragment">
<p data-height="200" data-theme-id="0" data-slug-hash="zvQBKm" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/zvQBKm/'>CSS3 Generator: box-shadow </a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<p class="fragment">Don't worry about memorizing this — use a <a href="http://css3gen.com/box-shadow/" target="_blank">generator</a> instead!</p>
</section>
<section>
<h3>Property: <em>opacity</em></h3>
<p><code>opacity</code> changes the opacity of the <span class="green">whole element</span></p>
<pre class="css">
<code>selector {
opacity: 0.5;
}</code>
</pre>
<p class="fragment">The value can be a number between <span class="blue">0 (translucent)</span> and <span class="blue">1.0 (opaque)</span></p>
<div class="fragment">
<p data-height="268" data-theme-id="0" data-slug-hash="WQBGBq" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/WQBGBq/'>Opacity vs. RBGA</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3><em>opacity</em> in Hover States</h3>
<p class="fragment"><code>opacity</code> is commonly used in hover states to reveal transparent content</p>
<div class="fragment">
<p data-height="337" data-theme-id="0" data-slug-hash="XmwNdM" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/XmwNdM/'>Opacity and Hover - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h2>Let's Develop It!</h2>
<p>You may have noticed that one of these things is not like the other. That's because one is a hover state!</p>
<p>Let's animate multiple properties (for example, <code>box-shadow</code> and <code>opacity</code>) for the hover states in the <span class="blue">About</span> section.</p>
<p><img src="img/home-hover.jpg" alt="Hover state for home image" /></p>
</section>
<section data-background="#f05b62">
<h1 style="color: #fafafa;font-size:3.7em">Additional Animation Effects</h1>
</section>
<section>
<h3>Property: <em>transition-delay</em></h3>
<p>Use <code>transition-delay</code> to delay when an animation begins</p>
<pre class="css fragment">
<code>selector {
transition: width 1s;
transition-delay: 3s;
}</code>
</pre>
<div class="fragment">
<p data-height="338" data-theme-id="0" data-slug-hash="PPgxEp" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/PPgxEp/'>Transition Delays</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<section>
<h3>Property:<br/><em>transition-timing-function</em></h3>
<p class="fragment">The <span class="blue">timing function</span> changes how fast or slow the animation is at parts of the animation</p>
<pre class="css fragment" style="font-size:15px">
<code>selector {
transition: width 3.5s;
transition-timing-function: ease;
transition-timing-function: linear;
transition-timing-function: ease-in;
transition-timing-function: ease-out;
transition-timing-function: ease-in-out;
transition-timing-function: cubic-bezier(n,n,n,n);
}</code>
</pre>
<div class="fragment">
<p data-height="290" data-theme-id="0" data-slug-hash="JYVwgr" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/JYVwgr/'>Transition Timing Functions</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<p class="fragment"><small><strong>Fun fact</strong>: The <span class="blue">timing function</span> is sometimes called the <span class="blue">speed curve</span></small></p>
</section>
<section>
<h3>Property:<br /><em>transition-timing-function</em></h3>
<p class="blue">Additional Notes</p>
<p class="fragment">If you don't specify a timing function, <span class="orange">ease</span> is used</p>
<p class="fragment">With <span class="orange">cubic-bezier</span>, you can create your own timing function</p>
<p class="fragment">Use <a href="http://cubic-bezier.com/" target="_blank">cubic-bezier.com</a> to make your own timing function, and compare it to the built-in timing functions (such as <span class="green">ease</span> and <span class="green">linear</span>)</p>
</section>
<section>
<h3>Property: <em>transform</em></h3>
<p class="fragment">Use <code>transform</code> to rotate, scale, skew, change the perspective, and <a href="http://www.w3schools.com/cssref/css3_pr_transform.asp" target="_blank">much more</a></p>
<pre class="css fragment">
<code>selector {
transform: translate3d(0, -3px, 0);
transform: rotate(360deg);
/* and more! */
}</code>
</pre>
<p class="fragment"><code>transform</code> has too many values to list — use <a href="http://www.css3maker.com/css3-transform.html" target="_blank">CSS3Maker</a> or <a href="http://css3please.com/" target="_blank">CSS3, please!</a> to generate them</p>
<p class="fragment">A transformation is often animated with <code>transition</code></p>
<div class="fragment">
<p data-height="179" data-theme-id="0" data-slug-hash="YyMBVR" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/YyMBVR/'>Transition + Transform - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<!-- BEGIN UNEDITED -->
<!-- Inspo -->
<section>
<h3>Animation Inspiration</h3>
<p><br /><a href="https://stuffandnonsense.co.uk/content/demo/madmanimation/" target="_blank">MadManimation »</a></p>
<p><a href="https://pattle.github.io/simpsons-in-css/" target="_blank">The Simpsons in CSS »</a></p>
<p><a href="http://tympanus.net/Tutorials/CreativeCSS3AnimationMenus/" target="_blank">Creative CSS3 Animation Menus »</a></p>
<p><a href="http://tympanus.net/Tutorials/OriginalHoverEffects/" target="_blank">Original <code>:hover</code> Effects</a></p>
<p><a href="http://tympanus.net/Tutorials/AnimatedButtons/index5.html" target="_blank">Buttons with <code>:hover</code> »</a></p>
<p><a href="http://tympanus.net/codrops/2012/02/21/accordion-with-css3/" target="_blank">Accordion using <code>:checked</code> »</a></p>
<p><a href="http://codepen.io/shayhowe/pen/zCkBv?editors=110" target="_blank">Mobile menu using <code>:checked</code> »</a></p>
</section>
<!-- Next Week -->
<section class="hide-pdf">
<h2>Next Week</h2>
<p class="blue">Additional Animation Effects & Responsive Grid Systems</p>
<p> </p>
<p>If you haven't already, try to use each of the CSS properties discussed today!</p>
<!-- Mad Men animation: https://stuffandnonsense.co.uk/content/demo/madmanimation/ -->
</section>
<section class="hide-pdf">
<h3>Questions?</h3>
<div style="font-size:1200%; height:100%; margin-top:20%" class="blue">?
<div class="clear"></div>
</div>
<aside class="notes">Can always email me!</aside>
</section>
</div>
<footer>
<div class="copyright">
Intermediate HTML & CSS | Burlington Chapter |
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" />
</a>
</div>
</footer>
</div>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [{
src: 'lib/js/classList.js',
condition: function() {
return !document.body.classList;
}
}, {
src: 'plugin/markdown/marked.js',
condition: function() {
return !!document.querySelector('[data-markdown]');
}
}, {
src: 'plugin/markdown/markdown.js',
condition: function() {
return !!document.querySelector('[data-markdown]');
}
}, {
src: 'plugin/highlight/highlight.js',
async: true,
condition: function() {
return !!document.querySelector('pre code');
},
callback: function() {
hljs.initHighlightingOnLoad();
}
}, {
src: 'plugin/zoom-js/zoom.js',
async: true
}, {
src: 'plugin/notes/notes.js',
async: true
}, {
src: 'plugin/accessibility-helper/js/accessibility-helper.js',
async: true,
condition: function() {
return !!document.body.classList;
}
}]
});
</script>
</body>
</html>