-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (102 loc) · 2.4 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CSS3 Blending Mode</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css">
<link href='http://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
<style>
body {
background-color: #f9f9f9;
}
.warning {
text-align: center;
background-color: #ff7900;
color: #fff;
padding: 15px;
border-radius: 3px;
margin-bottom: 30px;
}
.demo-wrapper {
width: 500px;
margin: 80px auto;
}
.demo-wrapper .title {
font-size: 120px;
font-family: "Montserrat";
letter-spacing: -25px;
padding: 20px;
margin: 10px;
line-height: 0;
}
.demo-wrapper section {
text-align: center;
margin-bottom: 150px;
}
.demo-wrapper section h3 {
margin-bottom: 50px;
color: #555;
padding: 10px;
margin-bottom: 80px;
background-color: #fff;
border-radius: 3px;
border: 1px solid #ccc;
}
.demo-wrapper .without-blending-mode span {
opacity: 0.8;
}
.demo-wrapper .with-blending-mode span {
mix-blend-mode: multiply;
}
.demo-wrapper span:first-child {
color: #4285f4;
position: relative;
z-index: 100;
}
.demo-wrapper span:nth-child(2) {
color: #db4437;
}
.demo-wrapper span:nth-child(3) {
color: #f4b400;
}
.demo-wrapper span:nth-child(4) {
color: #4285f4;
position: relative;
z-index: 100;
}
.demo-wrapper span:nth-child(5) {
color: #0f9d58;
}
.demo-wrapper span:nth-child(6) {
color: #db4437;
}
</style>
<!-- Scripts -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="../_nav/js/nav.js" type="text/javascript"></script>
</head>
<body>
<!-- nav script -->
<div class="demo-meta">
<h1 class="demo-title">CSS3 Blending Mode</h1>
<p class="demo-desc">CSS3 Gradients with Blending Mode</p>
</div>
<!-- demo content -->
<div class="demo-wrapper">
<p class="warning">See this demo in Google Chrome 35 and above with <strong>Experimental Web Platform features</strong> enabled.</p>
<section class="without-blending-mode">
<h3>With Opacity</h3>
<h1 class="title">
<span>G</span><span>o</span><span>o</span><span>g</span><span>l</span><span>e</span>
</h1>
</section>
<section class="with-blending-mode">
<h3>With Blending Mode</h3>
<h1 class="title">
<span>G</span><span>o</span><span>o</span><span>g</span><span>l</span><span>e</span>
</h1>
</section>
</div>
</body>
</html>