|
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 | </head> |
48 | 76 | <body> |
49 | 77 |
|
50 | 78 | <!-- Fork Corner --> |
51 | | - <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> |
| 79 | + <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> |
52 | 80 |
|
53 | 81 | <article class="intro"> |
54 | 82 | <section class="callout"> |
@@ -1099,9 +1127,9 @@ <h3>Don't animate root elements</h3> |
1099 | 1127 | <h3>Infinite animations should be avoided</h3> |
1100 | 1128 | <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> |
1101 | 1129 | <h3>Mind the initial and final state of your elements</h3> |
1102 | | -<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> |
| 1130 | +<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> |
1103 | 1131 | <h3>Don't disable the <code>prefers-reduced-motion</code> media query</h3> |
1104 | | -<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> |
| 1132 | +<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> |
1105 | 1133 | <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"> |
1106 | 1134 | <span>See the Pen <a href="https://codepen.io/eltonmesquita/pen/oNjGGbw"> |
1107 | 1135 | Prefers-reduce-motion media query</a> by Elton Mesquita (<a href="https://codepen.io/eltonmesquita">@eltonmesquita</a>) |
@@ -1264,9 +1292,9 @@ <h2>Core Team</h2> |
1264 | 1292 | <table> |
1265 | 1293 | <thead> |
1266 | 1294 | <tr> |
1267 | | -<th><img src="https://avatars2.githubusercontent.com/u/439365?s=460&u=512b4cc5324938ae40bbb8f3b7769d335953cd3a&v=4" alt=""></th> |
1268 | | -<th><img src="https://avatars2.githubusercontent.com/u/5007208?s=460&u=418401ee605824272e5dcb955fd64ea24546a857&v=4" alt=""></th> |
1269 | | -<th><img src="https://avatars1.githubusercontent.com/u/15052701?s=460&u=9e58364978379536d3f26c4ce5cae1a2a449a0e4&v=4" alt=""></th> |
| 1295 | +<th><img src="https://avatars2.githubusercontent.com/u/439365?s=460&u=512b4cc5324938ae40bbb8f3b7769d335953cd3a&v=4" alt="" width="150" height="150"></th> |
| 1296 | +<th><img src="https://avatars2.githubusercontent.com/u/5007208?s=460&u=418401ee605824272e5dcb955fd64ea24546a857&v=4" alt="" width="150" height="150"></th> |
| 1297 | +<th><img src="https://avatars1.githubusercontent.com/u/15052701?s=460&u=9e58364978379536d3f26c4ce5cae1a2a449a0e4&v=4" alt="" width="150" height="150"></th> |
1270 | 1298 | </tr> |
1271 | 1299 | </thead> |
1272 | 1300 | <tbody> |
@@ -1301,7 +1329,7 @@ <h3>Code of Conduct</h3> |
1301 | 1329 | </div> |
1302 | 1330 | <aside class="sidebar"> |
1303 | 1331 | <div class="meta"> |
1304 | | - <a href="https://github.com/animate-css/animate.css" target="_blank" class="icon-github"> |
| 1332 | + <a href="https://github.com/animate-css/animate.css" target="_blank" class="icon-github" aria-label="View source on GitHub"> |
1305 | 1333 | <svg |
1306 | 1334 | xmlns="http://www.w3.org/2000/svg" |
1307 | 1335 | fill="none" |
@@ -1348,7 +1376,7 @@ <h3>Code of Conduct</h3> |
1348 | 1376 | rel="noopener noreferrer" |
1349 | 1377 | href="https://developers.google.com/web/updates/2019/03/prefers-reduced-motion" |
1350 | 1378 | > |
1351 | | - here</a |
| 1379 | + on Google Developers</a |
1352 | 1380 | >. |
1353 | 1381 | </p> |
1354 | 1382 | </aside> |
|
0 commit comments