Skip to content

Commit

Permalink
[chore] Update transitions.md (reactjs#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
LastStranger authored and diasbruno committed Apr 2, 2018
1 parent fa87046 commit d6f3463
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/styles/transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ your project's styles, you can make the modal content fade in when it is opened
and fade out when it is closed:

```css
.ReactModal__Content {
opacity: 0;
.ReactModal__Overlay {
opacity: 0;
transition: opacity 2000ms ease-in-out;
}

.ReactModal__Content--after-open {
opacity: 1;
transition: opacity 150ms;
.ReactModal__Overlay--after-open{
opacity: 1;
}

.ReactModal__Content--before-close {
opacity: 0;
.ReactModal__Overlay--before-close{
opacity: 0;
}
```

Expand Down

0 comments on commit d6f3463

Please sign in to comment.