Skip to content

Commit bad28d2

Browse files
committed
update Transitions.css
1 parent 22b2eda commit bad28d2

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

demos/css-transitioner/Transitions.css

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,31 @@ body {
2626
position: absolute;
2727
opacity: 0; }
2828

29-
.zoom-in-out, .zoom-in-out.disappeared {
29+
.zoom-in-out {
3030
position: absolute;
31-
transform: scale(0.6);
32-
opacity: 0;
3331
width: 100%;
34-
transition: all .3s ease-in; }
32+
transition: all .3s ease-out; }
3533

3634
.zoom-in-out.appearing {
37-
transform: scale(1);
38-
opacity: 1; }
35+
opacity: 1;
36+
transform: scale(1); }
3937

40-
.zoom-in-out.appeared {
41-
position: relative;
42-
transform: none;
43-
transition: none;
44-
opacity: 1; }
38+
.zoom-in-out.disappearing, .zoom-in-out.disappeared {
39+
opacity: 0;
40+
transform: scale(0.6); }
4541

46-
.fade-in-out, .fade-in-out.appeared {
47-
position: relative;
42+
.zoom-in-out.disappeared {
43+
transition: none; }
44+
45+
.fade-in-out {
46+
position: absolute;
4847
width: 100%;
49-
opacity: 1;
5048
transition: opacity .3s ease-out; }
5149

5250
.fade-in-out.appearing {
53-
position: absolute; }
51+
opacity: 1; }
5452

5553
.fade-in-out.disappearing, .fade-in-out.disappeared {
56-
position: absolute;
5754
opacity: 0; }
5855

5956
.slide-in-right {
@@ -75,21 +72,20 @@ body {
7572
left: 0; }
7673

7774
.slide-out-left {
78-
position: static;
75+
position: absolute;
7976
left: 0;
8077
width: 100%;
81-
transition: left 3s ease-out; }
78+
transition: left .3s ease-out; }
8279

8380
.slide-out-left.disappearing, .slide-out-left.disappeared {
84-
position: absolute;
8581
left: -100%; }
8682

8783
.slide-out-right {
88-
position: static;
84+
position: absolute;
8985
left: 0;
9086
width: 100%;
91-
transition: left 3s ease-out; }
87+
transition: left .3s ease-out; }
9288

9389
.slide-out-right.disappearing, .slide-out-right.disappeared {
94-
position: absolute;
95-
left: 100%; }
90+
left: 100%; }
91+

0 commit comments

Comments
 (0)