-
Notifications
You must be signed in to change notification settings - Fork 3
/
styles.css
122 lines (102 loc) · 1.94 KB
/
styles.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
html, body {
height: 100%;
}
body {
margin: 0;
overflow: hidden;
}
.slide {
text-align: center;
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
align-items: center;
justify-content: center;
}
.slide > *{
display: inline-block;
vertical-align: middle;
}
.slide:first-child{
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
left: 0 !important;
z-index: 1;
}
.slide:target{
z-index: 2;
}
/** ==== SLIDE BOTTOM ==== */
.slide.slideBottom {
-webkit-transition: top 2s, bottom 2s;
-o-transition: top 2s, bottom 2s;
-moz-transition: top 2s, bottom 2s;
transition: top 2s, bottom 2s;
top: -100%;
bottom: 100%;
}
.slide.slideBottom:target{
top: 0;
bottom: 0;
}
/** ==== SLIDE RIGHT ==== */
.slide.slideRight{
-webkit-transition: left 2s, right 2s;
-o-transition: left 2s, right 2s;
-moz-transition: left 2s, right 2s;
transition: left 2s, right 2s;
left: -100%;
right: 100%;
}
.slide.slideRight:target{
left: 0;
right: 0;
}
/** ==== SLIDE SQUASH ==== */
.slide.slideSquash {
-webkit-transition: left 2s, right 2s;
-o-transition: left 2s, right 2s;
-moz-transition: left 2s, right 2s;
transition: left 2s, right 2s;
left: 100%;
right: 100%;
z-index: 1;
}
.slide.slideSquash:target{
left: 0;
right: 0;
}
#slide1 {
background: LightSalmon;
}
#slide2 {
background: LightCoral;
}
#slide3 {
background: DeepSkyBlue;
}
#slide4 {
background: limegreen;
}
#slideEnd {
background: black;
}
#slideEnd span {
color: white;
text-decoration: none;
}