Unverified Commit ef1d35b4 authored by Harry Dehal's avatar Harry Dehal Committed by GitHub
Browse files

Update readme to include import example (#1271)

* Update readme to include import example

* Update docs for website

* Update usage markdown and docs
parent 98d3f27d
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment