-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdark_red.html
116 lines (97 loc) · 3 KB
/
dark_red.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- linking font awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
background: black;
margin: 0px;
padding: 0px;
overflow: hidden;
}
.background {
position: absolute;
background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/277/Underwater-Stars.jpg');
background-size: cover;
height: 100%;
width: 100%;
opacity: 0.3;
}
.quote {
-webkit-transition: all 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
-moz-transition: all 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
position: absolute;
left: 50%;
top: 50%;
margin-left: -275px;
margin-top: -120px;
opacity: 0;
}
.line {
-webkit-transition: width 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
-moz-transition: width 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
transition: width 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
width: 0px;
height: 1px;
background: #fff;
margin: auto;
margin-bottom: 12px;
margin-top: 18px;
}
.quote.active {
-webkit-transform: translateY(-30px);
-moz-transform: translateY(-30px);
transform: translateY(-30px);
opacity: 1;
}
.quote.active .line {
width: 100px;
}
img {
-webkit-animation: adjustHue 10s infinite;
-moz-animation: adjustHue 10s infinite;
animation: adjustHue 10s infinite;
}
@-webkit-keyframes adjustHue {
50% {
-webkit-filter: saturate(150%) hue-rotate(-35deg);
}
}
@-moz-keyframes adjustHue {
50% {
-moz-filter: saturate(150%) hue-rotate(-35deg);
}
}
@keyframes adjustHue {
50% {
filter: saturate(150%) hue-rotate(-35deg);
}
}
</style>
</head>
<body>
<script>
window.onload = function () {
setTimeout(function () {
document.querySelector('.quote').className = ('quote active');
}, 100)
}
</script>
<div class="background"></div>
<div class="quote">
<div class="line"></div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/277/first-quote_1.png" />
<div class="line"></div>
<div class="quote">
<div class="line"></div>
<p>
HEllo there
</p>
<div class="line"></div>
</div>
</div>
</body>
</html>