Bläddra i källkod
Fix small mistake in animations docs (#6142)
* Fix small mistake in animations docs
* Update style-animations.mdx
Yedidya Kennard
4 år sedan
förälder
incheckning
d44a91fd74
No account linked to committer's email address
|
@@ -100,11 +100,13 @@ The following example demonstrates how to show a modal with a fade-in animation.
|
100
|
100
|
|
101
|
101
|
```js
|
102
|
102
|
options: {
|
103
|
|
- showModal: {
|
104
|
|
- alpha: {
|
105
|
|
- from: 0,
|
106
|
|
- to: 1,
|
107
|
|
- duration: 300
|
|
103
|
+ animations: {
|
|
104
|
+ showModal: {
|
|
105
|
+ alpha: {
|
|
106
|
+ from: 0,
|
|
107
|
+ to: 1,
|
|
108
|
+ duration: 300
|
|
109
|
+ }
|
108
|
110
|
}
|
109
|
111
|
}
|
110
|
112
|
}
|
|
@@ -117,11 +119,13 @@ The following example demonstrates how to dismiss a modal with a fade-out animat
|
117
|
119
|
|
118
|
120
|
```js
|
119
|
121
|
options: {
|
120
|
|
- dismissModal: {
|
121
|
|
- alpha: {
|
122
|
|
- from: 1,
|
123
|
|
- to: 0,
|
124
|
|
- duration: 300
|
|
122
|
+ animations: {
|
|
123
|
+ dismissModal: {
|
|
124
|
+ alpha: {
|
|
125
|
+ from: 1,
|
|
126
|
+ to: 0,
|
|
127
|
+ duration: 300
|
|
128
|
+ }
|
125
|
129
|
}
|
126
|
130
|
}
|
127
|
131
|
}
|