|
26 | 26 | <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"> |
27 | 27 | <link rel="icon" href="img/favicon.ico" type="image/x-icon"> |
28 | 28 |
|
29 | | - <link rel="dns-prefetch" href="//fonts.googleapis.com" /> |
| 29 | + <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 30 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
30 | 31 | <link |
31 | 32 | href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,700;1,400&display=swap" |
32 | 33 | rel="stylesheet" |
| 34 | + media="print" |
| 35 | + onload="this.media='all'" |
33 | 36 | /> |
| 37 | + <noscript> |
| 38 | + <link |
| 39 | + href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,700;1,400&display=swap" |
| 40 | + rel="stylesheet" |
| 41 | + /> |
| 42 | + </noscript> |
| 43 | + |
34 | 44 | <link |
35 | 45 | href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/themes/prism-tomorrow.min.css" |
36 | 46 | rel="stylesheet" |
| 47 | + media="print" |
| 48 | + onload="this.media='all'" |
37 | 49 | /> |
| 50 | + <noscript> |
| 51 | + <link |
| 52 | + href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/themes/prism-tomorrow.min.css" |
| 53 | + rel="stylesheet" |
| 54 | + /> |
| 55 | + </noscript> |
38 | 56 |
|
39 | 57 | <!-- Fork Corner Stylesheet --> |
40 | 58 | <link |
41 | 59 | href="https://cdn.jsdelivr.net/npm/fork-corner/dist/fork-corner.min.css" |
42 | 60 | rel="stylesheet" |
| 61 | + media="print" |
| 62 | + onload="this.media='all'" |
43 | 63 | /> |
| 64 | + <noscript> |
| 65 | + <link |
| 66 | + href="https://cdn.jsdelivr.net/npm/fork-corner/dist/fork-corner.min.css" |
| 67 | + rel="stylesheet" |
| 68 | + /> |
| 69 | + </noscript> |
| 70 | + |
| 71 | + <link rel="stylesheet" href="animate.min.css" media="print" onload="this.media='all'" /> |
| 72 | + <noscript><link rel="stylesheet" href="animate.min.css" /></noscript> |
44 | 73 |
|
45 | | - <link rel="stylesheet" href="animate.min.css" /> |
46 | 74 | <link rel="stylesheet" href="style.css" /> |
47 | 75 | <style> |
48 | 76 | /* 1. Wrapper for positioning */ |
|
99 | 127 | <body> |
100 | 128 |
|
101 | 129 | <!-- Fork Corner --> |
102 | | - <a href="https://github.com/animate-css/animate.css" target="_blank" id="fork-corner" class="fork-corner fc-size-small fc-pos-tl fc-animate-grow fc-theme-github"></a> |
| 130 | + <a href="https://github.com/animate-css/animate.css" target="_blank" id="fork-corner" class="fork-corner fc-size-small fc-pos-tl fc-animate-grow fc-theme-github" aria-label="View source on GitHub"></a> |
103 | 131 |
|
104 | 132 | <article class="intro"> |
105 | 133 | <section class="callout"> |
@@ -1150,9 +1178,9 @@ <h3>Don't animate root elements</h3> |
1150 | 1178 | <h3>Infinite animations should be avoided</h3> |
1151 | 1179 | <p>Even though Animate.css provides utility classes for repeating animations, including an infinite one, you should avoid endless animations. It will just distract your users and might annoy a good slice of them. So, use it wisely!</p> |
1152 | 1180 | <h3>Mind the initial and final state of your elements</h3> |
1153 | | -<p>All the Animate.css animations include a CSS property called <code>animation-fill-mode</code>, which controls the states of an element before and after animation. You can read more about it <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode">here</a>. Animate.css defaults to <code>animation-fill-mode: both</code>, but you can change it to suit your needs.</p> |
| 1181 | +<p>All the Animate.css animations include a CSS property called <code>animation-fill-mode</code>, which controls the states of an element before and after animation. You can read more about it <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode">on MDN's documentation</a>. Animate.css defaults to <code>animation-fill-mode: both</code>, but you can change it to suit your needs.</p> |
1154 | 1182 | <h3>Don't disable the <code>prefers-reduced-motion</code> media query</h3> |
1155 | | -<p>Since version 3.7.0 Animate.css supports the <code>prefers-reduced-motion</code> media query which disables animations based on the OS system's preference on supporting browsers (most current browsers support it). This is a <strong>critical accessibility feature</strong> and should never be disabled! This is built into browsers to help people with vestibular and seizure disorders. You can read more about it <a href="https://css-tricks.com/revisiting-prefers-reduced-motion-the-reduced-motion-media-query/">here</a>. If your web-thing needs the animations to function, warn users, but don't disable the feature. You can do it easily with CSS only. Here's a simple example:</p> |
| 1183 | +<p>Since version 3.7.0 Animate.css supports the <code>prefers-reduced-motion</code> media query which disables animations based on the OS system's preference on supporting browsers (most current browsers support it). This is a <strong>critical accessibility feature</strong> and should never be disabled! This is built into browsers to help people with vestibular and seizure disorders. You can read more about it <a href="https://css-tricks.com/revisiting-prefers-reduced-motion-the-reduced-motion-media-query/">on CSS-Tricks</a>. If your web-thing needs the animations to function, warn users, but don't disable the feature. You can do it easily with CSS only. Here's a simple example:</p> |
1156 | 1184 | <p class="codepen" data-height="265" data-theme-id="dark" data-default-tab="css,result" data-user="eltonmesquita" data-slug-hash="oNjGGbw" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Prefers-reduce-motion media query"> |
1157 | 1185 | <span>See the Pen <a href="https://codepen.io/eltonmesquita/pen/oNjGGbw"> |
1158 | 1186 | Prefers-reduce-motion media query</a> by Elton Mesquita (<a href="https://codepen.io/eltonmesquita">@eltonmesquita</a>) |
@@ -1315,9 +1343,9 @@ <h2>Core Team</h2> |
1315 | 1343 | <table> |
1316 | 1344 | <thead> |
1317 | 1345 | <tr> |
1318 | | -<th><img src="https://avatars2.githubusercontent.com/u/439365?s=460&u=512b4cc5324938ae40bbb8f3b7769d335953cd3a&v=4" alt=""></th> |
1319 | | -<th><img src="https://avatars2.githubusercontent.com/u/5007208?s=460&u=418401ee605824272e5dcb955fd64ea24546a857&v=4" alt=""></th> |
1320 | | -<th><img src="https://avatars1.githubusercontent.com/u/15052701?s=460&u=9e58364978379536d3f26c4ce5cae1a2a449a0e4&v=4" alt=""></th> |
| 1346 | +<th><img src="https://avatars2.githubusercontent.com/u/439365?s=460&u=512b4cc5324938ae40bbb8f3b7769d335953cd3a&v=4" alt="" width="150" height="150"></th> |
| 1347 | +<th><img src="https://avatars2.githubusercontent.com/u/5007208?s=460&u=418401ee605824272e5dcb955fd64ea24546a857&v=4" alt="" width="150" height="150"></th> |
| 1348 | +<th><img src="https://avatars1.githubusercontent.com/u/15052701?s=460&u=9e58364978379536d3f26c4ce5cae1a2a449a0e4&v=4" alt="" width="150" height="150"></th> |
1321 | 1349 | </tr> |
1322 | 1350 | </thead> |
1323 | 1351 | <tbody> |
@@ -1352,7 +1380,7 @@ <h3>Code of Conduct</h3> |
1352 | 1380 | </div> |
1353 | 1381 | <aside class="sidebar"> |
1354 | 1382 | <div class="meta"> |
1355 | | - <a href="https://github.com/animate-css/animate.css" target="_blank" class="icon-github"> |
| 1383 | + <a href="https://github.com/animate-css/animate.css" target="_blank" class="icon-github" aria-label="View source on GitHub"> |
1356 | 1384 | <svg |
1357 | 1385 | xmlns="http://www.w3.org/2000/svg" |
1358 | 1386 | fill="none" |
@@ -1399,7 +1427,7 @@ <h3>Code of Conduct</h3> |
1399 | 1427 | rel="noopener noreferrer" |
1400 | 1428 | href="https://developers.google.com/web/updates/2019/03/prefers-reduced-motion" |
1401 | 1429 | > |
1402 | | - here</a |
| 1430 | + on Google Developers</a |
1403 | 1431 | >. |
1404 | 1432 | </p> |
1405 | 1433 | </aside> |
|
0 commit comments