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
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,11 +98,19 @@ Voila!
98
98
99
99
**Note**: We rely on `animate.css` in this example as `animate__fadeIn` and `animate__fadeOut` are part of `animate.css`. We recommend using it as it's an excellent animation library, but you're not forced to. If you prefer you may also use your custom animations as long as they're valid CSS animations.
100
100
101
-
**Note**: `animate.css` latest version has breaking changes. Import `animate.css` by importing as
101
+
**Note**: `animate.css` latest version (`v4`) has breaking changes. It introduces `animate__` prefix so that existing classes don't clash. If you still would like to use classes without prefix you can import `animate.css/animate.compat.css`
102
102
```js
103
+
// preferred way to import (from `v4`). Uses `animate__` prefix.
104
+
import'animate.min.css';
105
+
106
+
// Alternate way to use classes without prefix like `animated fadeIn`
103
107
import'animate.css/animate.compat.css'
104
108
```
105
109
110
+
In the examples, we will be using classes with `animate__` prefix, which is the default behaviour of latest `v4` version of `animate.css`.
111
+
112
+
For more info on how to use `animate.css`, please refer to [animate.css docs](https://animate.style/)
113
+
106
114
## API
107
115
108
116
`store.addNotification(options)`
@@ -116,6 +124,8 @@ Manually remove a notification by id.
116
124
117
125
## Examples
118
126
127
+
128
+
119
129
In the following examples for brevity some options will not be mentioned. Strictly focusing on the needed options to present each example. For reference, we will be using Object spread operator on a `notification` object to have non relevant fields included as well.
0 commit comments