forked from h5bp/Effeckt.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-elements.html
255 lines (187 loc) · 10.1 KB
/
form-elements.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Effeckt.css</title>
<meta name="description" content="UI-Less & Performant Transitions & Animations">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="assets/css/demo/demo.autoprefixed.css">
<!-- Individual module CSS files here -->
<!-- Should we combine or not combine? -->
<link rel="stylesheet" href="assets/css/effeckt.autoprefixed.css">
</head>
<body>
<div class="warning">Work in Progress! Not quite ready for prime-time</div>
<nav class="effeckt-off-screen-nav" id="effeckt-off-screen-nav">
<h4>
Navigation
<a href="#0" id="effeckt-off-screen-nav-close" class="effeckt-off-screen-nav-close">×</a>
</h4>
<ul>
<li><a href="#0">This</a></li>
<li><a href="#0">Little</a></li>
<li><a href="#0">Piggy</a></li>
<li><a href="#0">Went</a></li>
<li><a href="#0">To</a></li>
<li><a href="#0">Market</a></li>
</ul>
</nav>
<div class="effeckt-page-transition" id="effeckt-page-transition">
<div class="effeckt-page-transition-content">
<h2>Page Transition</h2>
<p>This is another page.</p>
<button class="page-transition-reset-button">Reset Transition</button>
</div>
</div>
<!-- dialogs first is important for ~ selector -->
<div class="effeckt-modal-wrap" id="effeckt-modal-wrap"> <!-- for centering transform -->
<div class="effeckt-modal" id="effeckt-modal">
<h3>Modal Dialog</h3>
<div class="effeckt-modal-content">
<p>This is a modal window.</p>
<button class="effeckt-modal-close">Close me!</button>
</div>
</div>
</div>
<!-- overlay coming after is important for ~ selector -->
<div class="effeckt-overlay no-transitions" id="effeckt-overlay"></div>
<div data-effeckt-page="page-1">
<div class="page-wrap no-transitions" id="page-wrap">
<h1>
<a href="./">
<span>E</span>
<span>f</span>
<span>f</span>
<span>e</span>
<span>c</span>
<span>k</span>
<span>t</span>
<br class="mobile-break">
<span>.</span>
<span>c</span>
<span>s</span>
<span>s</span>
</a>
</h1>
<subhead>
Performant CSS transitions & animations
<a href="https://github.com/h5bp/Effeckt.css">on GitHub</a>
</subhead>
<div class="effeckt effeckt-demo-form-elements">
<header>
<h2>
Form Elements
<a href="form-elements.html">#</a>
</h2>
<!-- <span class="source">
...
</span> -->
</header>
<!-- Checkboxes -->
<!-- http://codepen.io/uquaisse/pen/Jqhte -->
<h3>Checkbox</h3>
<input type="checkbox" class="effeckt-ckbox-ios7">
<input type="checkbox" class="effeckt-ckbox-ios7" checked>
<!-- Radios -->
<!-- http://codepen.io/uquaisse/pen/Jqhte -->
<h3>Radio</h3>
<input type="radio" name="group" class="effeckt-rdio-ios7">
<input type="radio" name="group" class="effeckt-rdio-ios7" checked>
<input type="radio" name="group" class="effeckt-rdio-ios7">
<!-- Android Checkboxes -->
<h3>Android Checkbox</h3>
<input type="checkbox" class="effeckt-ckbox-android">
<input type="checkbox" class="effeckt-ckbox-android" checked>
<!-- Android Radios -->
<h3>Android Radio</h3>
<input type="radio" name="group2" class="effeckt-rdio-android">
<input type="radio" name="group2" class="effeckt-rdio-android" checked>
<input type="radio" name="group2" class="effeckt-rdio-android">
</div>
<div class="effeckt contributors readme">
<header>
<h2>About</h2>
</header>
<p>Ever notice how small flourishes and subtle transitions dramatically increases the value of the experience you enjoy with an app or site?
<p>Designing and developing UIs for the mobile web is tricky, but it's extremely difficult to do that while delivering something that performs at 60fps. The best opportunities to getting jank-free transitions on phones/tablets are CSS transition and keyframe animation based, especially tapping into hardware-accelerated transforms and opacity changes.
<p>This library has a few <strong>goals</strong>:</p>
<ol>
<li>It provides very little UI of its own. It's only hooks for transitions/animations.</li>
<li>Designer-curated set of classy and reasonable effects. (no <a href="http://easings.net/#easeInBounce"><code>easeInBounce</code></a>)</li>
<li>Establish browser support guidelines (e.g. Android 2.3 would gracefully degrade)</li>
<li>CSS performance regression testing (a la <a href="http://bench.topcoat.io">bench.topcoat.io</a>)</li>
<li>Deliver jank-free <em>60fps</em> performance on target browsers/devices</li>
<li>If a particular effect cannot deliver target performance (hey <code>blur()</code> CSS filter), it cannot be included.</li>
<li>Guidelines on what to avoid when styling these affected elements (avoid expensive CSS)</li>
<li>Deliver a builder so users can pull only the CSS they need.</li>
<li>There is no hover on the mobile web, so any hover-based effects would be excluded or have a tap equivalent.</li>
</ol>
<div class="fluid-video">
<iframe width="640" height="480" src="//www.youtube.com/embed/Qc40YDFA4Bg" frameborder="0" allowfullscreen></iframe>
</div>
<header>
<h2>Contributors</h2>
</header>
<ul id="contributors-list" class="contributors-list"></ul>
</div>
<div class="off-screen-nav-cover"></div>
</div><!-- div.page-wrap -->
</div>
<div data-effeckt-page="page-2">
<div class="page-wrap" id="page-2">
<h2>Page Transition From Left</h2>
<p>This is another page.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro nulla unde doloremque consequuntur illum quo dolor. Tenetur, voluptate temporibus fuga labore atque illum quas vel dignissimos impedit vitae corporis itaque!<p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos, sunt tempora perspiciatis officia laudantium voluptas dicta! Nesciunt, magnam nostrum velit iste beatae totam voluptatibus sint quas amet modi architecto labore.</p>
<button class="effeckt-page-transition-button" data-effeckt-transition-in="slide-from-right" data-effeckt-transition-out="slide-to-left" data-effeckt-transition-page="page-1">Slide From Right</button>
</div>
</div>
<div data-effeckt-page="page-3">
<div class="page-wrap" id="page-3">
<h2>Page Transition From Right</h2>
<p>This is another page.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, accusamus, aliquam error excepturi asperiores ipsum nobis molestias neque molestiae illum magnam mollitia nulla temporibus aliquid esse rem amet cumque facilis.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, temporibus, ducimus architecto quidem voluptatem sint maiores atque deserunt sed aspernatur eveniet vel perferendis corrupti impedit aut voluptates neque similique enim.</p>
<button class="effeckt-page-transition-button" data-effeckt-transition-in="slide-from-left" data-effeckt-transition-out="slide-to-right" data-effeckt-transition-page="page-1">Slide From Left</button>
</div>
</div>
<div data-effeckt-page="page-4">
<div class="page-wrap" id="page-4">
<h2>Page Transition From Bottom</h2>
<p>This is another page.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, accusamus, aliquam error excepturi asperiores ipsum nobis molestias neque molestiae illum magnam mollitia nulla temporibus aliquid esse rem amet cumque facilis.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, temporibus, ducimus architecto quidem voluptatem sint maiores atque deserunt sed aspernatur eveniet vel perferendis corrupti impedit aut voluptates neque similique enim.</p>
<button class="effeckt-page-transition-button" data-effeckt-transition-in="slide-from-top" data-effeckt-transition-out="slide-to-bottom" data-effeckt-transition-page="page-1">Slide From Top</button>
</div>
</div>
<div data-effeckt-page="page-5">
<div class="page-wrap" id="page-5">
<h2>Page Transition From Top</h2>
<p>This is another page.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, accusamus, aliquam error excepturi asperiores ipsum nobis molestias neque molestiae illum magnam mollitia nulla temporibus aliquid esse rem amet cumque facilis.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, temporibus, ducimus architecto quidem voluptatem sint maiores atque deserunt sed aspernatur eveniet vel perferendis corrupti impedit aut voluptates neque similique enim.</p>
<button class="effeckt-page-transition-button" data-effeckt-transition-in="slide-from-bottom" data-effeckt-transition-out="slide-to-top" data-effeckt-transition-page="page-1">Slide From Bottom</button>
</div>
</div>
<!-- libs -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-2.0.3.min.js"><\/script>')</script>
<!-- Individual module JS files here -->
<!-- Should we combine or not combine? -->
<!-- Should we provide minified versions? -->
<script src="assets/js/Effeckt.js"></script>
<script src="assets/js/modules/modals.js"></script>
<script src="assets/js/modules/buttons.js"></script>
<script src="assets/js/modules/list-items.js"></script>
<script src="assets/js/modules/off-screen-nav.js"></script>
<script src="assets/js/modules/page-transitions.js"></script>
<script src="assets/js/modules/list-scroll.js"></script>
<script src="assets/js/modules/tabs.js"></script>
<script src="assets/js/modules/positional-modals.js"></script>
<!-- demo -->
<script src="assets/js/demo/demo.js"></script>
<script src="assets/js/demo/lazy-loading.js"></script>
</body>
</html>