diff --git a/docs/index.html b/docs/index.html index 264bf5d..95745ed 100644 --- a/docs/index.html +++ b/docs/index.html @@ -836,7 +836,7 @@

Animate.css 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.

-

Edit this on Github

+

Edit this on Github

@@ -900,7 +900,7 @@ document.documentElement.style.setProperty('--animate-duration', '.5s');

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.

-

Edit this on Github

+

Edit this on Github

@@ -1026,7 +1026,7 @@ document.documentElement.style.setProperty('--animate-duration', '.5s'); } -

Edit this on Github

+

Edit this on Github

@@ -1048,7 +1048,7 @@ document.documentElement.style.setProperty('--animate-duration', '.5s'); </body>

Infinite animations should be avoided

-

Even tough 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!

+

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!

Mind the initial and final state of your elements

All the Animate.css animations include a CSS property called animation-fill-mode which controls the states of an element before and after animation. You can read more about it here. Animate.css defaults to animation-fill-mode: both, but you can change it to suit your needs.

Don't disable the prefers-reduced-motion media query

@@ -1067,7 +1067,7 @@ document.documentElement.style.setProperty('--animate-duration', '.5s');

Intervals between repeats

Unfortunately, this isn't possible with pure CSS right now. You have to use Javascript to achieve this result.

-

Edit this on Github

+

Edit this on Github

@@ -1119,7 +1119,7 @@ animateCSS('.my-element', 'animate__bounce').then((message) => {

If you had a hard time understanding the previous function, have a look at const, classList, arrow functions, and Promises.

-

Edit this on Github

+

Edit this on Github

@@ -1154,7 +1154,7 @@ animateCSS('.my-element', 'animate__bounce').then((message) => {

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 animate.compat.css file.

-

Edit this on Github

+

Edit this on Github

@@ -1197,7 +1197,7 @@ $ npm install

Easy peasy!

-

Edit this on Github

+

Edit this on Github

@@ -1211,7 +1211,7 @@ $ npm install

Contributing

Pull requests are the way to go here. We only have two rules for submitting a pull request: match the naming convention (camelCase, categorized [fades, bounces, etc]) and let us see a demo of submitted animations in a pen. That last one is important.

-

Edit this on Github

+

Edit this on Github

@@ -1239,7 +1239,7 @@ $ npm install -

Edit this on Github

+

Edit this on Github

diff --git a/docsSource/compileMD.js b/docsSource/compileMD.js index 6a3a97a..644da53 100644 --- a/docsSource/compileMD.js +++ b/docsSource/compileMD.js @@ -17,7 +17,7 @@ function compileMD(dir = 'sections') { const sectionTemplate = (file, content) => { const message = 'Edit this on Github'; const fileName = file.replace('.md', '').match(/([a-z])\w+/)[0]; - const editURL = `https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/${file}`; + const editURL = `https://github.com/daneden/animate.css/blob/master/docsSource/sections/${file}`; const parsedContent = md.render(content); return ` diff --git a/docsSource/sections/03-best-practices.md b/docsSource/sections/03-best-practices.md index ba01092..b275982 100644 --- a/docsSource/sections/03-best-practices.md +++ b/docsSource/sections/03-best-practices.md @@ -28,7 +28,7 @@ Animating the `` or `` tags is possible, but you should avoid it. ### Infinite animations should be avoided -Even tough 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! +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! ### Mind the initial and final state of your elements