Skip to content

Commit d6f3463

Browse files
LastStrangerdiasbruno
authored andcommitted
[chore] Update transitions.md (#635)
1 parent fa87046 commit d6f3463

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: docs/styles/transitions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ your project's styles, you can make the modal content fade in when it is opened
66
and fade out when it is closed:
77

88
```css
9-
.ReactModal__Content {
10-
opacity: 0;
9+
.ReactModal__Overlay {
10+
opacity: 0;
11+
transition: opacity 2000ms ease-in-out;
1112
}
1213

13-
.ReactModal__Content--after-open {
14-
opacity: 1;
15-
transition: opacity 150ms;
14+
.ReactModal__Overlay--after-open{
15+
opacity: 1;
1616
}
1717

18-
.ReactModal__Content--before-close {
19-
opacity: 0;
18+
.ReactModal__Overlay--before-close{
19+
opacity: 0;
2020
}
2121
```
2222

0 commit comments

Comments
 (0)