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:
parent
98d3f27dbf
commit
ef1d35b488
|
@ -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 "animate.css"
|
||||
</code></pre>
|
||||
<p>Or add it directly to your webpage using a CDN:</p>
|
||||
<pre><code class="language-html"><head>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue