This repository has been archived by the owner on Feb 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
105 lines (92 loc) · 2.21 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap');
* {
user-select: none;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
.box {
position: relative;
width: 100%;
height: 100vh;
overflow: auto;
/* scroll-behavior: smooth; */
scroll-snap-type: y mandatory;
}
section {
position: relative;
width: 100%;
height: 100%;
background-blend-mode: multiply;
scroll-snap-align: center;
}
section .content {
position: absolute;
bottom: 50px;
left: 50px;
max-width: 700px;
}
section .content h2 {
background: white;
color: #111;
font-weight: 600;
display: inline-block;
padding: 10px 20px;
font-size: 2em;
}
section .content p {
background: white;
color: #111;
font-weight: 600;
padding: 10px 20px;
margin-top: 10px;
}
section:nth-child(1) {
background: url(images/1.jpg);
background-position: center;
background-size: cover;
background-attachment: fixed;
}
section:nth-child(2) {
background: url(images/2.jpg);
background-position: center;
background-size: cover;
background-attachment: fixed;
background-blend-mode: multiply;
}
section:nth-child(3) {
background: url(images/3.jpg);
background-position: center;
background-size: cover;
background-attachment: fixed;
background-blend-mode: multiply;
}
section:nth-child(4) {
/* background: url(images/rome.jpg); */
background: url(images/spqr.png);
/* background-position: top; */
background-position: center;
background-size: cover;
background-attachment: fixed;
background-blend-mode: multiply;
}
section:nth-child(5) {
background: url(images/pompei.jpg);
background-position: center;
background-size: cover;
background-attachment: fixed;
background-blend-mode: multiply;
}
@media screen and (min-width: 300px) and (max-width: 800px) {
section {
overflow: hidden;
}
section:nth-child(4) {
background: url(images/spqr.png);
background-position: center;
background-size: cover;
background-attachment: fixed;
background-blend-mode: multiply;
}
}