-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
120 lines (102 loc) · 2.01 KB
/
style.css
File metadata and controls
120 lines (102 loc) · 2.01 KB
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
:root {
--left-bg-color: rgba(87, 84, 236, 0.7);
--right-bg-color: rgba(43, 43, 43, 0.8);
--left-btn-hover-color: rgba(28, 122, 28, 1);
--hover-width: 75%;
--other-width: 25%;
--speed: 1s;
}
body{
height: 100vh;
margin: 0;
font-style: sans-serif;
overflow: hidden;
}
h1{
color: white;
font-size: 4rem;
position: absolute;
left: 50%;
top: 20%;
transform: translateX(-50%);
white-space: nowrap;
}
.btn{
position: absolute;
display: flex;
align-items: center;
justify-content: center;
left: 50%;
top: 40%;
transform: translateX(-50%);
text-decoration: none;
color: white;
border: white solid;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
width: 15rem;
padding: 1.5rem;
}
.split.left .btn:hover{
background-color: rgba(0, 0, 0, 0.06);
border-color: rgba(0, 0, 0, 0.06);
}
.split.right .btn:hover{
background-color: rgba(0, 0, 0, 0.06) ;
border-color: rgba(0, 0, 0, 0.06);
}
.container{
position: relative;
height: 100%;
width: 100%;
background-color: darkgray;
}
.split{
position: absolute;
width: 50%;
height: 100%;
overflow: hidden;
}
.split.left{
left: 0;
background-image: url(1.jpg);
background-repeat: no-repeat;
background-size: cover;
}
/* .split.left::before{
content: "";
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(87, 84, 236, 0.7) ;
} */
.split.right{
right: 0;
background-image: url(2.jpg);
background-repeat: no-repeat;
background-size: cover;
}
/*
.split.right::before{
content: "";
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(43, 43, 43, 0.8) ;
} */
.split.left,.split.right,.split.left::before,.split.right::before{
transition: all 1s ease-in-out;
}
.hover-left .left{
width: 75%;
}
.hover-left .right{
width: 25%;
}
.hover-right .right{
width: 75%;
}
.hover-right .left{
width: 25%;
}