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
Copy file name to clipboardExpand all lines: README.md
+30-5Lines changed: 30 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,21 @@ npm install --save wowjs
35
35
],
36
36
```
37
37
38
+
Also make sure that [Animate.css](which is already installed and used internally by `wowjs` to actually animate items) is listed as [global style](https://github.com/angular/angular-cli/wiki/stories-global-styles), by either:
39
+
40
+
* editing `angular-cli.json` as such:
41
+
```
42
+
"styles": [
43
+
"../node_modules/animated.css/animate.css"
44
+
],
45
+
```
46
+
* or by importing in your main `styles.scss` (or `styles.sass`, `styles.less`, `styles.styl`) file as such:
47
+
```sass
48
+
...
49
+
@import "~animate.css/animate.css";
50
+
...
51
+
```
52
+
38
53
##### SystemJS
39
54
>**Note**:If you are using `SystemJS`, you should adjust your configuration to point to the UMD bundle.
40
55
In your systemjs config file, `map` needs to tell the System loader where to look for `ngx-wow`:
@@ -46,7 +61,7 @@ map: {
46
61
In your systemjs config file, `meta` needs to tell the System loader how to load `wowjs`:
47
62
```js
48
63
meta: {
49
-
'./node_modules/wowjs/dist/wow.js': {
64
+
'./node_modules/wowjs/dist/wow.min.js': {
50
65
format:'amd'
51
66
}
52
67
}
@@ -56,7 +71,14 @@ In your index.html file, add script tag to load `wowjs` globally:
0 commit comments