You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add installation instructions. The README didn't reference npm even though there is an npm package: web-animations#134 had a TODO for adding the installation instructions to the README.
Are these installation instructions right? Or is it `require('web-animation-js').polyfill()` instead of just `require('web-animation-js')`?
Thank you for your work on this library and the cool demos.
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,20 @@ Here's a simple example of an animation that fades and scales a `<div>`.
41
41
</script>
42
42
```
43
43
44
+
Install
45
+
-----------
46
+
47
+
Install the [npm](https://www.npmjs.com/package/web-animations-js) package:
48
+
49
+
`npm install web-animations-js`
50
+
51
+
then use web-animation-js as either a CommonJS or an ES2015 module:
52
+
53
+
CommonJS module: `require('web-animation-js')`
54
+
or ES2015 module: `import 'web-animation-js'`
55
+
56
+
This will requires a module bundler such as [Browserify](http://browserify.org/), [Webpack](https://webpack.js.org), or [Rollup](https://rollupjs.org/).
0 commit comments