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

Commit 3c46254

Browse files
committed
Merge pull request #26 from appirio-tech/transition
add slide class transitions
2 parents 56e2425 + f5e3ec4 commit 3c46254

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/styles/modal.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@ modal {
44
@include align-items(center);
55
@include display(flex);
66
@include justify-content(center);
7-
@include flex-wrap(wrap);
7+
@include transform(scale(0));
88
@include transition (all 0.2s ease-in-out);
99

1010
position : fixed;
11-
top : 100vh;
11+
top : 0;
1212
left : 0;
1313
width : 100%;
1414
height : 100%;
1515
z-index : 1000;
1616
opacity : 0;
1717

18+
&.slide {
19+
top: 100vh;
20+
transform: inherit;
21+
22+
&.show {
23+
top: 0;
24+
opacity: 1;
25+
}
26+
}
27+
1828
&.show {
19-
top: 0;
29+
@include transform(scale(1));
2030
opacity: 1;
2131
}
2232

@@ -32,4 +42,4 @@ modal {
3242
height: 25px;
3343
}
3444
}
35-
}
45+
}

0 commit comments

Comments
 (0)