-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
121 lines (109 loc) · 3.16 KB
/
index2.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link href="https://fonts.googleapis.com/css?family=Work+Sans:400,300,200,500,700,600" rel="stylesheet" type="text/css">
</head>
<body>
<header>
Parallax Fix Background effect
</header>
<div class="parallax1"></div>
<main>
<section>
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante. Mauris eleifend, quam a vulputate dictum, massa quam dapibus leo, eget vulputate orci purus ut lorem.
</div>
</section>
<section class="light-brown-bg">
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante. Mauris eleifend, quam a vulputate dictum, massa quam dapibus leo, eget vulputate orci purus ut lorem.
</div>
</section>
<div class="parallax2"></div>
<section class="light-bg">
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante. Mauris eleifend, quam a vulputate dictum, massa quam dapibus leo, eget vulputate orci purus ut lorem.
</div>
</section>
<section>
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante. Mauris eleifend, quam a vulputate dictum, massa quam dapibus leo, eget vulputate orci purus ut lorem.
</div>
</section>
</main>
<div class="dva" id="dvaraz">Навести</div>
<style>
body {
margin: 0;
padding: 0;
font-family: 'Work Sans', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
header {
position: relative;
height: 200px;
z-index: 2;
background-color: #e1bde4;
text-align: center;
padding-top: 100px;
font-size: 40px;
font-weight: 300;
color: #333;
}
.parallax1, .parallax2 {
width: 100%;
background-size: cover;
background-attachment: fixed;
background-position: center center;
}
.parallax1 {
height: 400px;
background-image: url(https://pp.vk.me/c630922/v630922063/39363/Osi-QeHr8p4.jpg);
}
.parallax2 {
height: 400px;
background-image: url(https://pp.vk.me/c622116/v622116276/41114/biUddcPiFls.jpg);
}
main section {
position: relative;
height: 300px;
font-size: 18px;
text-align: center;
}
main section div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.light-brown-bg {
background-color: #f3e3d6;
}
.light-bg {
background-color: #f7f6f8;
}
.dva:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) no-repeat 100% 0%;
background-size: 100% 100%;
}
.dva:hover:after {
transition: 12s linear;
background-size: 0 100%;
}
.dva {
position: relative;
font-size: 400%;
line-height: 100%;
}
</style>
</body>
</html>