Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 56e2425

Browse files
committed
Merge pull request #25 from appirio-tech/transition
Add Slide Transition to Modal
2 parents e5f2980 + 4a736e0 commit 56e2425

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/styles/modal.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,18 @@ modal {
55
@include display(flex);
66
@include justify-content(center);
77
@include flex-wrap(wrap);
8-
@include transform(scale(0));
98
@include transition (all 0.2s ease-in-out);
109

1110
position : fixed;
12-
top : 0;
11+
top : 100vh;
1312
left : 0;
1413
width : 100%;
1514
height : 100%;
1615
z-index : 1000;
1716
opacity : 0;
1817

1918
&.show {
20-
@include transform(scale(1));
21-
19+
top: 0;
2220
opacity: 1;
2321
}
2422

@@ -35,4 +33,3 @@ modal {
3533
}
3634
}
3735
}
38-

0 commit comments

Comments
 (0)