forked from spreadthesource/jquery-featurify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
featurify.htm
163 lines (126 loc) · 4.25 KB
/
featurify.htm
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Featurify sample</title>
<style type="text/css" media="screen">
body {
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
background-color: #F6FFE0;
padding:0px;
margin:0px;
}
h1 {
font-family: Trebuchet MS, Helvetica, Arial, sans-serif;
font-size:45px;
text-shadow:-1px -1px 1px rgba(255,255,255,0.5);
font-weight:bold;
letter-spacing:-2px;
color: #241;
margin-top:0px;
padding-top:0px;
}
h2,h3 { color: #343; }
a { color: #696; }
pre { font-size:12px; border:1px solid black; padding:10px; background-color:#fff; }
#header { background-color: #E6EFD0; padding:30px; border-bottom:1px solid #D6DFC0; }
#intro { font-family: Trebuchet MS, Helvetica, Arial, sans-serif; font-size:20px; font-style:italic; margin:0px; color:#9b9; }
#wrapper { margin: 30px; }
.sample { background-color: #efd; }
#sample3 { width: 620px; border:15px solid #fff; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 0px 0px 10px rgba(47,47,50,0.4); -webkit-box-shadow: 0px 0px 10px rgba(47,47,50,0.4); -moz-box-shadow: 0px 0px 10px rgba(47,47,50,0.4); }
#sample3 ul { list-style:none; }
#sample3 li { font-family: Trebuchet MS, Helvetica, Arial, sans-serif; font-size:50px; color:#363; margin:0px; }
#sample3 img { vertical-align:middle; margin-right:40px; }
</style>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="featurify.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#sample1").featurify();
$("#sample2").featurify({
directionIn : 1,
directionOut:1,
pause:2000
});
$("#sample3").featurify({
directionIn : -1,
directionOut: -1,
pause:3000,
transition:250
});
});
</script>
</head>
<body>
<div id="header">
<div id="intro"><a href="http://spreadthesource.com">spread the source</a> presents...</div>
<h1>Featurify jQuery plugin!</h1>
</div>
<div id="wrapper">
<p>
Extremely easy to use jQuery plugin that allows you to make simple sliders with auto playing and hover managing.
</p>
<h2>Samples</h2>
<h3>Default</h3>
<p>By default, featurify will just slide over your list items. If you hover the featurified div, animation will stop.</p>
<div id="sample1" class="sample">
<ul>
<li>Something</li>
<li>Another thing</li>
<li>Ultimate thing</li>
</ul>
</div>
<h3>Speed and directions modified</h3>
<p>Of course, you can customize it a little by chaging directions and speed</p>
<div id="sample2" class="sample">
<ul>
<li>Something</li>
<li>Another thing</li>
<li>Ultimate thing</li>
</ul>
</div>
<h3>With some styling options and images</h3>
<p>And if you add some CSS and images, it becomes magical!</p>
<div id="sample3" class="sample">
<ul>
<li><img src="img/1_256.png" />Easy</li>
<li><img src="img/2_256.png" />Fast</li>
<li><img src="img/3_256.png" />Cost saving</li>
</ul>
</div>
<h2>How to use it?</h2>
<p>Basically you just have to create a div, an ul, a li :</p>
<pre><div id="features">
<ul>
<li>Something really cool</li>
<li>Another thing cooler</li>
<li>Final awesome thing</li>
<ul>
</div></pre>
<p>And then, just do : </p>
<pre>
$("#features").featurify();
//or if you want some options
$("#features").featurify({ pause:7000, transition: 200 });
</pre>
<h2>Options</h2>
<pre>
pause // time in milleseconds between each slide
transition // time in milleseconds that will take the sliding effect
directionIn // left: -1 / right: 1. Direction from where will come the next slide
directionOut // left: -1 / right: 1. Direction to where will go the current slide
</pre>
<h2>More Informations & contacts</h2>
<ul>
<li><a href="http://spreadthesource.com/sandbox/featurify/featurify.html">Demo</a> : samples and instructions</li>
<li><a href="http://github.com/spreadthesource/jquery-featurify">Github</a> : source code, download, and issue tracker</li>
</ul>
<ul>
<li><a href="http://spreadthesource.com">Blog</a> : spread the source, the blog!</li>
<li><a href="http://twitter.com/spreadthesource">Twitter</a></li>
</ul>
<h2>License</h2>
<p>This project is distributed under Apache 2 License.</p>
</div>
</body>
</html>