-
Notifications
You must be signed in to change notification settings - Fork 64
/
example.html
98 lines (81 loc) · 2.17 KB
/
example.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>funnyText.js</title>
<meta name="author" content="Alvaro Trigo Lopez" />
<meta name="description" content="funnyText.js plugin by Alvaro Trigo. Create a funny text effect with jQuery." />
<meta name="keywords" content="funnyText.js,funnyText,madText,jquery,alvaro,trigo,plugin,effect,text,texts,moving,hover" />
<meta name="Resource-type" content="Document" />
<link rel="stylesheet" type="text/css" href="./jquery.funnyText.css" />
<style>
.text1, .text2{
display:block;
text-align:center;
}
body{
font-family:arial;
}
.text2 span {
background-color: #DFE2DB;
}
.text2 span.active {
background-color: #3B3738;
}
/* Web design
* --------------------------------------- */
.table{
display:table;
width:100%;
height: 100%;
}
.tableCell{
display:table-cell;
vertical-align: middle;
width:100%;
height: 100%;
}
body, html{
margin:0;
padding:0;
height:100%;
background-color: #00AEEF;
background-color: #00AEEF;
background-image: url(imgs/grain.png);
}
</style>
<!--[if IE]>
<script type="text/javascript">
var console = { log: function() {} };
</script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="./jquery.funnyText.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.text1').funnyText({
speed: 700,
activeColor: '#fff',
color: 'black',
fontSize: '8em'
});
$('.text2').funnyText({
speed: 700,
fontSize: '7em',
color: '#191919',
activeColor: '#fff',
borderColor: 'black'
});
});
</script>
</head>
<body>
<div class="table">
<div class="tableCell">
<div class="text1"> funnyText.js</div>
<div class="text2"> This is an example </div>
</div>
</div>
</body>
</html>