-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.html
174 lines (160 loc) · 5.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>3Drollovers.css Test Page</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="site.css" type="text/css">
<link rel="stylesheet" href="3Drollovers.css" type="text/css">
</head>
<body>
<header><h1>3Drollovers.css test page</h1></header>
<section class="all">
<ol>
<li>
<h2>Rollover</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="fade">
<h2>Fade</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip">
<h2>Flip</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip up">
<h2>Flip Up</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip box">
<h2>Flip Box</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip box fade">
<h2>Flip Box Fade</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip box fade up">
<h2>Flip Box Fade Up</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip box fade hideback">
<h2>Flip Box Fade Hideback</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="flip box fade up hideback">
<h2>Flip Box Fade Up Hideback</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
<li class="nananana">
<h2>Nananana</h2>
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</li>
</section>
<section class="interactive">
<p>Try to set the different classes in the form field and then roll over the image.</p>
<output id="demo">
<div class="fade flip box">
<a class="rollover" href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</div>
</output>
<form>
<pre><code><span><!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8"><title>Rollover</title></span>
<link rel="stylesheet" href="3Drollovers.css" type="text/css">
<span></head><body></span>
<div class="<input type="text" id="fx" value="fade box">">
<a class="rollover"
href="https://developer.mozilla.org/en/HTML/HTML5">
<figure class="cube">
<img src="mdnface.png" class="front" alt="MDN">
<img src="htmlface.png" class="back" alt="HTML5">
</figure>
</a>
</div>
<span></body></html></span></code></pre>
<input type="submit" value="see changes">
</form>
</section>
<footer>
<p>Written by
<a href="http://christianheilmann.com/">Chris Heilmann</a>
(<a href="http://twitter.com/codepo8">@codepo8</a>)
</p>
</footer>
<script>
(function(){
var f = document.querySelector('form'),
d = document.querySelector('#demo div'),
fx = document.querySelector('#fx');
f.addEventListener('input', addclasses, false);
f.addEventListener('change', addclasses, false);
f.addEventListener('submit', addclasses, false);
function addclasses(ev) {
d.className = fx.value;
ev.preventDefault();
}
})();
</script>
<!-- <img src="http://thewebrocks.com/demos/3D-css-tester/mdnface.png"
class="front" alt="MDN">
<img src="http://thewebrocks.com/demos/3D-css-tester/htmlface.png"
class="back" alt="HTML5"> -->
</body>
</html>