You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.html
+17-12Lines changed: 17 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -836,7 +836,7 @@ <h2 class="docs-mainTitle">
836
836
</blockquote>
837
837
<p><strong>Animate.css</strong> is a library of ready-to-use, cross-browser animations for use in your web projects. Great for emphasis, home pages, sliders, and attention-guiding hints.</p>
838
838
839
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/00-intro.md" title="Edit this on Github">Edit this on Github</a></p>
839
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/00-intro.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
<p>Even though custom properties are not supported by some aging browsers, Animate.css provides a proper fallback, widening its support for any browser that supports CSS animations.</p>
902
902
903
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/01-usage.md" title="Edit this on Github">Edit this on Github</a></p>
903
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/01-usage.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
<p>As with the repeat and speed classes, the <code>animate__repeat</code> class is based on the <code>--animate-repeat</code> property and has a default iteration count of <code>1</code>. You can customize them setting the <code>--animate-repeat</code> property to a longer or a shorter value:</p>
1024
+
<p>As with the delay and speed classes, the <code>animate__repeat</code> class is based on the <code>--animate-repeat</code> property and has a default iteration count of <code>1</code>. You can customize them by setting the <code>--animate-repeat</code> property to a longer or a shorter value:</p>
1021
1025
<pre><codeclass="language-css">/* The element will repeat the animation 2x
1022
-
It's better to set this property only locally and not globally or
1026
+
It's better to set this property locally and not globally or
1023
1027
you might end up with a messy situation */
1024
1028
.my-element {
1025
1029
--animate-repeat: 2;
1026
1030
}
1027
1031
</code></pre>
1032
+
<p>Notice that <code>animate__infinite</code> doesn't use any custom property and changes to <code>--animate-repeat</code> will have no effect on it. Don't forget to read the <ahref="#best-practices">best practices</a> section to make the best use of repeating animations.</p>
1028
1033
1029
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/02-utilities.md" title="Edit this on Github">Edit this on Github</a></p>
1034
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/02-utilities.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
1030
1035
</section>
1031
1036
1032
1037
@@ -1067,7 +1072,7 @@ <h3>Overflow</h3>
1067
1072
<h3>Intervals between repeats</h3>
1068
1073
<p>Unfortunately, this isn't possible with pure CSS right now. You have to use Javascript to achieve this result.</p>
1069
1074
1070
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/03-best-practices.md" title="Edit this on Github">Edit this on Github</a></p>
1075
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/03-best-practices.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
1071
1076
</section>
1072
1077
1073
1078
@@ -1119,7 +1124,7 @@ <h2>Usage with Javascript</h2>
1119
1124
</code></pre>
1120
1125
<p>If you had a hard time understanding the previous function, have a look at <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const">const</a>, <ahref="https://developer.mozilla.org/en-US/docs/Web/API/Element/classList">classList</a>, <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">arrow functions</a>, and <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promises</a>.</p>
1121
1126
1122
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/04-javascript.md" title="Edit this on Github">Edit this on Github</a></p>
1127
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/04-javascript.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
1123
1128
</section>
1124
1129
1125
1130
@@ -1154,7 +1159,7 @@ <h2>Migration from v3.x and under</h2>
1154
1159
</code></pre>
1155
1160
<p>In the case of a new project, it's highly recommended to use the default prefixed version as it'll make sure that you'll hardly have classes conflicting with your project. Besides, in later versions, we might decide to discontinue the <code>animate.compat.css</code> file.</p>
1156
1161
1157
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/06-migration.md" title="Edit this on Github">Edit this on Github</a></p>
1162
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/06-migration.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
1158
1163
</section>
1159
1164
1160
1165
@@ -1197,15 +1202,15 @@ <h3>Changing the default prefix</h3>
1197
1202
</code></pre>
1198
1203
<p>Easy peasy!</p>
1199
1204
1200
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/07-custom-builds.md" title="Edit this on Github">Edit this on Github</a></p>
1205
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/07-custom-builds.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
<p>Animate.css supports the <ahref="https://webkit.org/blog/7551/responsive-design-for-motion/"><code>prefers-reduced-motion</code> media query</a> so that users with motion sensitivity can opt-out of animations. On supported platforms (currently all the major browsers and OS, including mobile), users can select "reduce motion" on their operating system preferences and it will turn off CSS transitions for them without any further work required.</p>
1207
1212
1208
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/08-accessibility.md" title="Edit this on Github">Edit this on Github</a></p>
1213
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/08-accessibility.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
1209
1214
</section>
1210
1215
1211
1216
@@ -1233,7 +1238,7 @@ <h2>Core team</h2>
1233
1238
</tbody>
1234
1239
</table>
1235
1240
1236
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/09-contributors.md" title="Edit this on Github">Edit this on Github</a></p>
1241
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/09-contributors.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
1237
1242
</section>
1238
1243
1239
1244
@@ -1245,7 +1250,7 @@ <h3>Contributing</h3>
1245
1250
<h3>Code of Conduct</h3>
1246
1251
<p>This project and everyone participating in it are governed by the <ahref="https://github.com/animate-css/animate.css/blob/master/CODE_OF_CONDUCT.md">Contributor Covenant Code of Conduct</a>. By participating, you are expected to uphold this code. Please report unacceptable behavior to <ahref="mailto:callmeelton@gmail.com">callmeelton@gmail.com</a>.</p>
1247
1252
1248
-
<pclass="edit-github"><ahref="https://github.com/daneden/animate.css/blob/master/docsSource/sections/09-license-contributing.md" title="Edit this on Github">Edit this on Github</a></p>
1253
+
<pclass="edit-github"><ahref="https://github.com/animate-css/animate.css/blob/master/docsSource/sections/09-license-contributing.md" title="Edit this on GitHub">Edit this on GitHub</a></p>
Copy file name to clipboardExpand all lines: docsSource/sections/02-utilities.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,14 +77,17 @@ You can control the iteration count of the animation by adding these classes, li
77
77
|`animate__repeat-1`|`1`|
78
78
|`animate__repeat-2`|`2`|
79
79
|`animate__repeat-3`|`3`|
80
+
|`animate__infinite`|`infinite`|
80
81
81
-
As with the repeat and speed classes, the `animate__repeat` class is based on the `--animate-repeat` property and has a default iteration count of `1`. You can customize them setting the `--animate-repeat` property to a longer or a shorter value:
82
+
As with the delay and speed classes, the `animate__repeat` class is based on the `--animate-repeat` property and has a default iteration count of `1`. You can customize them by setting the `--animate-repeat` property to a longer or a shorter value:
82
83
83
84
```css
84
85
/* The element will repeat the animation 2x
85
-
It's better to set this property only locally and not globally or
86
+
It's better to set this property locally and not globally or
86
87
you might end up with a messy situation */
87
88
.my-element {
88
89
--animate-repeat: 2;
89
90
}
90
91
```
92
+
93
+
Notice that `animate__infinite` doesn't use any custom property and changes to `--animate-repeat` will have no effect on it. Don't forget to read the [best practices](#best-practices) section to make the best use of repeating animations.
0 commit comments