This repository has been archived by the owner on Jun 1, 2018. It is now read-only.
/
index.html
225 lines (183 loc) · 6.76 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!--
Copyright 2012 Adobe Systems, Incorporated
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License http://creativecommons.org/licenses/by-nc-sa/3.0/ .
Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe http://www.adobe.com/communities/guidelines/ccplus/commercialcode_plus_permission.html .
-->
<!DOCTYPE HTML>
<html>
<head>
<title>CSS Shaders</title>
<meta charset="UTF-8">
<style type="text/css">
body{
margin: 0;
font-size: 1.2em;
font-family: Palatino, Georgia, serif;
}
h1{
color: white;
margin: 0;
padding-right: 60px;
text-shadow: rgba(0, 0, 0, 0.347656) 0px 1px 2px;
}
h1 em{
display: block;
font: 0.55em / 1.5em normal;
color: #ccc;
}
h2{
margin: 60px 0 20px;
letter-spacing: -1px;
}
p{
color: #333;
line-height: 1.4em;
}
a{
color: purple;
}
a:hover{
color: black;
}
a:visited{
color: #8560A8;
}
header{
background: #6F518F;
}
header .logo{
height: 62px;
width: 38px;
display: block;
position: absolute;
top: -1px;
right: 32px;
line-height: 200px;
overflow: hidden;
background: url("http://adobe.github.com/web-platform-assets/images/adobe_small_logo.gif") top left no-repeat;
box-shadow: 0 2px 2px rgba(0, 0, 0, .35);
}
header .logo:hover{
top: 0px;
}
.wrapper{
width: 90%;
margin: 0 auto;
padding: 25px 0;
}
header + .wrapper{
padding: 0 0 50px;
}
code{
background: #eee;
border: 1px solid #d7d7d7;
padding: 0 3px;
}
#check_support.false{
background: #ffc;
border: 1px solid yellow;
padding: 10px 20px;
}
.demos{
padding: 0;
list-style: none;
}
.demos li{
padding: 0 0 5px;
margin: 0 0 30px;
}
.demos li.divider{
font-weight: bold;
list-style: none;
}
.demos li:last-child{
border: none;
margin: 0;
}
@media all and (min-width: 640px){
.wrapper{
padding: 50px 0;
width: 600px;
}
header .logo{
right: 52px;
}
}
</style>
<script type="text/javascript" src="http://adobe.github.com/web-platform-assets/js/BrowserDetector.js"></script>
</head>
<body>
<header>
<a href="http://www.adobe.com/" target="_blank" class="logo">Adobe</a>
<div class="wrapper">
<h1>CSS Shaders</h1>
</div>
</header>
<section class="wrapper">
<h2>About</h2>
<p>CSS Shaders bring cinematic visual effects to HTML, using simple CSS syntax.
They expand the visual effects and interactivity possible with Web content.
We think CSS shaders can be both visually pleasing and, perhaps more importantly,
provide enhanced user experience by offering very organic and natural user
interaction feedback.
</p>
<p>With CSS shaders, you can twist, wave, curl, and color your content in any way
you like to create effects such as flipping pages, curling corners, paper textures,
curtain effects, magnifying glass, or anything else you can express in a shading language.</p>
<p>We have put together a set of demos for you. They showcase some of the concepts
we <a href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html" target="_blank">propose with CSS Shaders</a>.
</p>
<p>
This prototype version will allow you to play with these samples, which are a way
for us to explore the implementation options for these features.
You'll find basic samples that demonstrate individual CSS properties, as well as
more complex ones that highlight the extent of effects possible with CSS shaders.
</p>
<div class="col demos">
<h2>Demos</h2>
<ul>
<li class="divider">Simple</li>
<li>
<a href="simple-fragment/index.html" target="_blank">Fragment Shader</a>
</li>
<li>
<a href="simple-vertex/index.html" target="_blank">Vertex Shader</a>
</li>
<li>
<a href="simple-vertex-params/index.html" target="_blank">Vertex Shader with parameters from CSS</a>
</li>
<li>
<a href="simple-vertex-fragment/index.html" target="_blank">Vertex and fragment shaders</a>
</li>
<li>
<a href="simple-vertex-transition/index.html" target="_blank">Vertex shader with CSS transition</a>
</li>
<li>
<a href="simple-vertex-animation/index.html" target="_blank">Vertex shader with CSS animation</a>
</li>
<li class="divider">Advanced</li>
<li>
<a href="varyings/index.html" target="_blank">Passing values between vertex and fragment shader</a>
</li>
<li>
<a href="detached_tiles/index.html" target="_blank">Vertex shader - using detached tiles</a>
</li>
<li>
<a href="transforming_tiles/index.html" target="_blank">Vertex shader - tile dependent transforms</a>
</li>
<li>
<a href="curtain/index.html" target="_blank">Using more filters on the same page</a>
</li>
</ul>
</div>
<div class="col help">
<h2>Help</h2>
<p>The <a href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html" target="_blank">CSS Shaders Proposal</a> should serve as the current instructions manual for getting started with shaders.</p>
<p>The <a href="http://www.adobe.com/devnet/html5/articles/css-shaders.html" target="_blank">"Introducing CSS shaders"</a> article on Adobe Developer Connection is an overview of shaders and their capabilities.</p>
</div>
<p>Thanks!<br/>
– The Adobe WebKit team</p>
<p class="license">Unless otherwise noted, code and content is licensed under a <a href="http://creativecommons.org/publicdomain/zero/1.0/">Public Domain License</a>.</p>
</section>
</body>
</html>