File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 35
35
}
36
36
.fade-wait-leave .fade-wait-leave-active {
37
37
opacity : 0 ;
38
- transition : opacity .5 s ease-in;
38
+ transition : opacity .4 s ease-in;
39
39
}
40
40
41
41
.fade-wait-enter {
44
44
.fade-wait-enter .fade-wait-enter-active {
45
45
opacity : 1 ;
46
46
/* Delay the enter animation until the leave completes */
47
- transition : opacity .5 s ease-in .5 s ;
47
+ transition : opacity .4 s ease-in .6 s ;
48
48
}
49
49
50
50
.fade-wait-height {
Original file line number Diff line number Diff line change @@ -37,23 +37,21 @@ class Demo extends React.Component {
37
37
< p className = "text-danger" > < em > Click any content to trigger the transition.</ em > </ p >
38
38
39
39
< h2 > Cross-fade transition</ h2 >
40
- < ContentSwapper transitionName = "cross-fade" transitionEnterTimeout = { 1000 } transitionLeaveTimeout = { 1000 }
41
- transitionHeight = { false } >
42
- < img key = "img1" src = "/img/vista1.jpg" width = "600" height = "280" />
40
+ < ContentSwapper transitionName = "cross-fade" transitionEnterTimeout = { 1000 } transitionLeaveTimeout = { 1000 } >
41
+ < img key = "img1" src = "/img/vista1.jpg" width = "600" height = "235" />
43
42
< img key = "img2" src = "/img/vista2.jpg" width = "600" height = "280" />
44
43
</ ContentSwapper >
45
44
46
45
< h2 > Fade out, then fade in transition</ h2 >
47
- < ContentSwapper transitionName = "fade-wait" transitionEnterTimeout = { 1000 } transitionLeaveTimeout = { 1000 } >
46
+ < ContentSwapper transitionName = "fade-wait" transitionEnterTimeout = { 1000 } transitionLeaveTimeout = { 400 } >
48
47
< ContentLong key = "long" />
49
48
< ContentShort key = "short" />
50
49
</ ContentSwapper >
51
50
52
51
< h2 > Carousel transition</ h2 >
53
- < ContentSwapper style = { { width : 600 } }
54
- transitionName = "carousel-swap" transitionEnterTimeout = { 500 } transitionLeaveTimeout = { 500 }
55
- transitionHeight = { false } >
56
- < img key = "img3" src = "/img/vista3.jpg" width = "600" height = "280" />
52
+ < ContentSwapper transitionName = "carousel-swap" transitionEnterTimeout = { 500 } transitionLeaveTimeout = { 500 }
53
+ style = { { width : 600 } } >
54
+ < img key = "img3" src = "/img/vista3.jpg" width = "600" height = "255" />
57
55
< img key = "img4" src = "/img/vista4.jpg" width = "600" height = "280" />
58
56
</ ContentSwapper >
59
57
You can’t perform that action at this time.
0 commit comments