File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ @import url ('https://fonts.googleapis.com/css?family=Muli&display=swap' );
2
+
3
+ * {
4
+ box-sizing : border-box;
5
+ }
6
+
7
+ body {
8
+ font-family : 'Muli' , sans-serif;
9
+ display : flex;
10
+ align-items : center;
11
+ justify-content : center;
12
+ height : 100vh ;
13
+ overflow : hidden;
14
+ margin : 0 ;
15
+ }
16
+
17
+ .container {
18
+ display : flex;
19
+ width : 90vw ;
20
+ }
21
+
22
+ .panel {
23
+ background-size : cover;
24
+ background-position : center;
25
+ background-repeat : no-repeat;
26
+ height : 80vh ;
27
+ border-radius : 50px ;
28
+ color : # fff ;
29
+ cursor : pointer;
30
+ flex : 0.5 ;
31
+ margin : 10px ;
32
+ position : relative;
33
+ -webkit-transition : all 700ms ease-in;
34
+ }
35
+
36
+ .panel h3 {
37
+ font-size : 24px ;
38
+ position : absolute;
39
+ bottom : 20px ;
40
+ left : 20px ;
41
+ margin : 0 ;
42
+ opacity : 0 ;
43
+ }
44
+
45
+ .panel .active {
46
+ flex : 5 ;
47
+ }
48
+
49
+ .panel .active h3 {
50
+ opacity : 1 ;
51
+ transition : opacity 0.3s ease-in 0.4s ;
52
+ }
53
+
54
+ @media (max-width : 480px ) {
55
+ .container {
56
+ width : 100vw ;
57
+ }
58
+
59
+ .panel : nth-of-type (4 ),
60
+ .panel : nth-of-type (5 ) {
61
+ display : none;
62
+ }
63
+ }
You can’t perform that action at this time.
0 commit comments