Skip to content

Commit f08868e

Browse files
committed
Update UMD bundle section
1 parent 5c1a369 commit f08868e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,20 @@ $ npm install --save css-animator
4242
$ jspm install npm:css-animator
4343
```
4444

45-
## Use the bundle
45+
## Use the `UMD` bundle
4646

47-
See https://jsfiddle.net/qxtvgL98/72/ for a full example
47+
| Name (to `require`) | Bundle | |
48+
| --- | --- | ---
49+
| `css-animator/builder` | `bundles/builder.min.js` | Includes `AnimationBuilder` only |
50+
| `css-animator` | `bundles/css-animator.min.js` | Requires `@angular/core` as peer dependency |
51+
52+
> See https://jsfiddle.net/4ec57wpb/1/ for a full basic example
4853
4954
```html
5055
<html>
5156
<head>
52-
<script src="https://unpkg.com/css-animator@2.4.0-beta.4/bundles/builder.min.js"></script>
53-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"/>
57+
<script src="https://unpkg.com/css-animator@latest/bundles/builder.min.js"></script>
58+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"/>
5459
</head>
5560
<body>
5661
<!-- ... -->
@@ -61,7 +66,7 @@ See https://jsfiddle.net/qxtvgL98/72/ for a full example
6166
const animator = new AnimationBuilder();
6267
6368
// ...
64-
});
69+
})();
6570
</script>
6671
</body>
6772
</html>

0 commit comments

Comments
 (0)