forked from endtwist/kerning.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
70 lines (65 loc) · 2.35 KB
/
demo.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
<!doctype html>
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Kerning.js Demo</title>
<style type="text/css">
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body { font:13px/1.231 "Helvetica Neue", Helvetica, sans-serif; }
html, body {
overflow: hidden;
text-wrap: none;
text-align: center;
background: #fffad5;
}
p {
visibility: hidden;
-word-transform: -transform-group(rotate(10deg))
-transform-group(rotate(-10deg));
font-size: 5em;
color: #bd4932;
text-shadow: 0 3px 5px rgba(189, 75, 50, 0.5);
margin: 200px 0 0;
}
h1 {
visibility: hidden;
font-size: 10em;
/* You can skip -transform-groups if you don't use spaces in the transforms,
and limit each letter to a single transform. */
-letter-transform: -letter-repeats(even: rotate(5deg), odd: rotate(-5deg));
-letter-color: -letter-if-font('Helvetica Neue': -letter-repeats(even: #db9e36, odd: #bd4932));
-letter-kern: -letter-pairs('Ke': 2px, 'g.': 1px, '.j': -13px);
text-shadow: 0 3px 5px rgba(189, 75, 50, 0.5);
}
</style>
</head>
<body>
<p>This is</p>
<h1>Kerning.js</h1>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="kerning.js"></script>
</body>
</html>