Skip to content

Commit 4603216

Browse files
authored
Fix CSS animation
1 parent c980a82 commit 4603216

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/assets/style.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,20 +328,22 @@ th {
328328

329329

330330

331-
.diff-once-enter-active {
332-
transition: all 10s;
331+
.diff-once-leave-active {
332+
transition: all 1s;
333333
position: absolute;
334334
}
335335

336336
.pos-absolute {
337337
position: absolute;
338+
top: 0;
339+
left: 0;
338340
}
339341

340-
.diff-once-enter {
342+
.diff-once-leave {
341343
opacity: 1;
342344
}
343345

344-
.diff-once-enter-to {
346+
.diff-once-leave-to {
345347
opacity: 0;
346-
transform: translateY(-300px);
348+
transform: translateY(-30px);
347349
}

0 commit comments

Comments
 (0)