Skip to content

Commit 1011b89

Browse files
committed
simpler animations
1 parent 374ef7d commit 1011b89

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

app/assets/styles.css

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ a.active {
8383
top: 41px;
8484
bottom: 0;
8585
overflow: scroll;
86+
background: #fff;
8687
}
8788

8889
.padBox {
@@ -120,25 +121,20 @@ a.active {
120121
}
121122

122123
.detail-enter {
123-
-webkit-transform: scale(0.1);
124-
opacity: 0;
125-
transition: all 200ms ease;
124+
opacity: 0.01;
125+
transition: opacity 500ms ease;
126126
}
127127

128128
.detail-enter.detail-enter-active {
129129
opacity: 1;
130-
-webkit-transform: scale(1);
131130
}
132131

133132
.detail-leave {
134-
-webkit-transform: scale(1);
133+
transition: opacity 500ms ease;
135134
opacity: 1;
136-
transition: all 200ms ease;
137135
}
138136

139137
.detail-leave.detail-leave-active {
140-
opacity: 0;
138+
opacity: 0.01;
141139
}
142140

143-
144-

0 commit comments

Comments
 (0)