Update readme to include import example (#1271)

* Update readme to include import example

* Update docs for website

* Update usage markdown and docs
This commit is contained in:
Harry Dehal 2021-08-13 08:54:26 -07:00 committed by GitHub
parent 98d3f27dbf
commit ef1d35b488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -887,10 +887,13 @@
<p>Install with npm:</p>
<pre><code class="language-shell">$ npm install animate.css --save
</code></pre>
<p>with yarn:</p>
<p>Or install with Yarn (this will only work with appropriate tooling like Webpack, Parcel, etc. If you are not using any tool for packing or bundling your code, you can simply use the CDN method below):</p>
<pre><code class="language-shell">$ yarn add animate.css
</code></pre>
<p>or add it directly to your webpage using a CDN:</p>
<p>Import it into your file:</p>
<pre><code class="language-js">import &quot;animate.css&quot;
</code></pre>
<p>Or add it directly to your webpage using a CDN:</p>
<pre><code class="language-html">&lt;head&gt;
&lt;link
rel=&quot;stylesheet&quot;

View File

@ -8,13 +8,19 @@ Install with npm:
$ npm install animate.css --save
```
with yarn:
Or install with Yarn (this will only work with appropriate tooling like Webpack, Parcel, etc. If you are not using any tool for packing or bundling your code, you can simply use the CDN method below):
```shell
$ yarn add animate.css
```
or add it directly to your webpage using a CDN:
Import it into your file:
```js
import 'animate.css';
```
Or add it directly to your webpage using a CDN:
```html
<head>