-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathntSlide.css
77 lines (68 loc) · 2.28 KB
/
ntSlide.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.nt-slideDown .nt-element {
position: absolute;
z-index: 3;
top:0;
left:0;
width: 100%;
background-color: #FFFFFF;
transform: translate3d(0, -100%, 0);
-webkit-transform: translate3d(0, -100%, 0);
}
.nt-slideDown.nt-element-in .nt-element {
-webkit-animation: nt-slideDown-in 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
animation: nt-slideDown-in 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@-webkit-keyframes nt-slideDown-in {
from { -webkit-transform: translate3d(0, -100%, 0); }
to { -webkit-transform: translate3d(0, 0, 0); }
}
@keyframes nt-slideDown-in {
from { transform: translate3d(0, -100%, 0); }
to { transform: translate3d(0, 0, 0); }
}
.nt-slideDown.nt-element-out .nt-element {
-webkit-animation: nt-slideDown-out 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
animation: nt-slideDown-out 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@-webkit-keyframes nt-slideDown-out {
from { -webkit-transform: translate3d(0, 0, 0); }
to { -webkit-transform: translate3d(0, -100%, 0); }
}
@keyframes nt-slideDown-out {
from { transform: translate3d(0, 0, 0); }
to { transform: translate3d(0, -100%, 0); }
}
.nt-slideUp .nt-element {
position: absolute;
z-index: 3;
bottom:0;
left:0;
width: 100%;
background-color: #FFFFFF;
transform: translate3d(0, 100%, 0);
-webkit-transform: translate3d(0, 100%, 0);
}
.nt-slideUp.nt-element-in .nt-element {
-webkit-animation: nt-slideUp-in 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
animation: nt-slideUp-in 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@-webkit-keyframes nt-slideUp-in {
from { -webkit-transform: translate3d(0, 100%, 0); }
to { -webkit-transform: translate3d(0, 0, 0); }
}
@keyframes nt-slideUp-in {
from { transform: translate3d(0, 100%, 0); }
to { transform: translate3d(0, 0, 0); }
}
.nt-slideUp.nt-element-out .nt-element {
-webkit-animation: nt-slideUp-out 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
animation: nt-slideUp-out 0.35s 0s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@-webkit-keyframes nt-slideUp-out {
from { -webkit-transform: translate3d(0, 0, 0); }
to { -webkit-transform: translate3d(0, 100%, 0); }
}
@keyframes nt-slideUp-out {
from { transform: translate3d(0, 0, 0); }
to { transform: translate3d(0, 100%, 0); }
}