File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- ### v2.0.0 (11 September 2016)
1
+ ### v2.0.1 (14 September 2016)
2
+
3
+ * [ DOCUMENTATION] Minor grammar improvement in the README.
4
+
5
+ ### v2.0.0 (14 September 2016)
2
6
3
7
* [ ENHANCEMENT] Add support for IE<=11 (thanks @le0nik ) (#22 , #23 )
4
8
* [ ENHANCEMENT] Provide an ` isLeaving ` prop on the current child component while it is leaving. (thanks @le0nik )
Original file line number Diff line number Diff line change @@ -42,10 +42,9 @@ and the new component animated in. During this process:
42
42
- The leaving component continues to be rendered as usual with ` static ` positioning.
43
43
- The entering component is positioned on top of the leaving component with ` absolute ` positioning.
44
44
- The height of the container is set to that of the leaving component, and then immediately to that of the
45
- entering component, and the ` {animation-name}-height ` class is applied to it, if type of ` transitionName ` is
46
- ` String ` . If type of ` transitionName ` is ` Object ` , ` transitionName.height ` class will be used without modifications,
47
- if present.
48
- - The leaving component will be passed ` isLeaving ` prop while transitioning out.
45
+ entering component. If the ` transitionName ` is a ` String ` the ` {animation-name}-height ` class name is applied
46
+ to it, and if ` transitionName ` is an ` Object ` the ` transitionName.height ` class will be used if present.
47
+ - The leaving component will be passed an ` isLeaving ` prop while transitioning out.
49
48
50
49
This provides many possibilities for animating the replacement as illustrated in the examples below.
51
50
Original file line number Diff line number Diff line change @@ -262,9 +262,9 @@ export default class ReactCSSTransitionReplace extends React.Component {
262
262
263
263
264
264
if ( height !== null ) {
265
- const heightClassName = ( typeof transitionName == 'object' && transitionName !== null ) ?
266
- transitionName . height || '' :
267
- `${ transitionName } -height` ;
265
+ const heightClassName = ( typeof transitionName == 'object' && transitionName !== null )
266
+ ? transitionName . height || ''
267
+ : `${ transitionName } -height` ;
268
268
269
269
containerProps . className = `${ containerProps . className || '' } ${ heightClassName } ` ;
270
270
containerProps . style = {
You can’t perform that action at this time.
0 commit comments