File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Using `react-css-transition-replace` provides two distinct benefits:
15
15
16
16
Animations are fully configurable with CSS, including having the entering component wait to enter until
17
17
the leaving component's animation completes. Following suit with the
18
- [ React.js API] ( https://facebook.github.io/react/docs/animation.html#getting-started ) the one caveat is
18
+ [ React.js API] ( https://facebook.github.io/react/docs/animation.html ) the one caveat is
19
19
that the transition duration must be specified in JavaScript as well as CSS.
20
20
21
21
[ Live Examples] ( http://marnusw.github.io/react-css-transition-replace ) |
@@ -56,6 +56,10 @@ It is also possible to remove the child component (i.e. leave `ReactCSSTransitio
56
56
which will animate the ` height ` going to zero along with the ` leave ` transition. Similarly, a single child
57
57
can be added to an empty ` ReactCSSTransitionReplace ` , triggering the inverse animation.
58
58
59
+ By default a ` span ` is rendered as a wrapper of the child components. Each child is also wrapped in a ` span `
60
+ used in the positioning of the actual rendered child. These can be overridden with the ` component ` and
61
+ ` childComponent ` props respectively.
62
+
59
63
### Cross-fading two components
60
64
61
65
The ` ReactCSSTransitionReplace ` component is used exactly like its ` ReactCSSTransitionGroup ` counterpart:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-css-transition-replace" ,
3
- "version" : " 2.2.0 " ,
3
+ "version" : " 3.0.0-beta.1 " ,
4
4
"description" : " A React component to animate replacing one element with another." ,
5
5
"main" : " lib/ReactCSSTransitionReplace.js" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments