Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix doc & example transition opacity from .99 to 1 #460

Merged
merged 1 commit into from
Nov 14, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/09-addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ You can use these classes to trigger a CSS animation or transition. For example,
}

.example-enter.example-enter-active {
opacity: 0.99;
opacity: 1;
}
```

You'll notice that when you try to remove an item `ReactTransitionGroup` keeps it in the DOM. If you're using an unminified build of React you'll see a warning that React was expecting an animation or transition to occur. That's because `ReactTransitionGroup` keeps your DOM elements on the page until the animation completes. Try adding this CSS:

```css
.example-leave {
opacity: 0.99;
opacity: 1;
transition: opacity .5s ease-in;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/transitions/transition.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.example-enter.example-enter-active,
.example-leave {
margin-left: 0;
opacity: 0.99;
opacity: 1;
}

.animateExample {
Expand Down