forked from serkanyersen/protoplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·224 lines (219 loc) · 8.22 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Protoplus</title>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="protoplus.js"></script>
<style>
body{
font-family:"Trebuchet MS";
font-size:13px;
}
table.outer{
border:1px solid #ccc;
border-collapse:collapse;
background:#f5f5f5;
}
table.outer td{
border:1px solid #ccc;
}
.title{
font-size:20px;
font-weight:bolder;
}
.description{
font-size:11px;
}
.example{
background:#333;
color:white;
font-family:monaco;
}
table.options-table{
}
table.options-table td{
border:none;
font-size:12px;
}
table.options-table th{
text-align:left;
}
table.options-table tr{
background:#fafafa;
}
.option-titles{
background:#eaeaea !important;
}
.option{
}
.default{
}
.values{
}
.desc{
}
.dotted{
border:1px dotted #999;
background:#fff;
height:1px;
}
.alter{
background:#f0f0f0 !important;
}
</style>
</head>
<body>
<a href="tests">Tests</a>
<h2>Protoplus Documantations</h2>
<table class="outer" cellpadding="5" cellspacing="0">
<tr>
<td class="title">Shift</td>
</tr>
<tr>
<td>
<div class="description">
Sets animatically any numeric style value of an element. Also sets colors and scroll amounts
<br>
it a generic animation library.
</div>
</td>
</tr>
<tr>
<td class="example">
<code lang="javascript">
$(element).shift({height:100, width:200, duration:3});
</code>
</td>
</tr>
<tr>
<td colspan="2">
<table class="options-table" cellpadding="5" cellspacing="0">
<tr class="option-titles">
<th>Option</th>
<th>Default</th>
<th>Values</th>
<th>Description</th>
</tr>
<tr>
<th class="option">
duration
</th>
<td class="default">
1
</td>
<td class="values">
numeric value as seconds
</td>
<td class="desc">
Defines how much time to it will take to complete the animation.
</td>
</tr>
<tr class="alter">
<th class="option">
easing
</th>
<td class="default">
sineOut
</td>
<td class="values">
Transition name
</td>
<td class="desc">
Defines which easing method will be applied for the animation.
</td>
</tr>
<tr>
<th class="option">
onStart
</th>
<td class="default">
-
</td>
<td class="values">
Function
</td>
<td class="desc">
A function which will be run before the animation starts.
</td>
</tr>
<tr class="alter">
<th class="option">
onEnd
</th>
<td class="default">
-
</td>
<td class="values">
Function
</td>
<td class="desc">
A function which will be run after the animation finishes.
</td>
</tr>
<tr>
<th class="option">
remove
</th>
<td class="default">
false
</td>
<td class="values">
Boolean
</td>
<td class="desc">
If true, removes the element from dom when the animation finishes.
</td>
</tr>
<tr class="alter">
<th class="option" valign="top">
Style Property
</th>
<td class="default" valign="top">
-
</td>
<td class="values" valign="top">
Any Numeric Value
</td>
<td class="desc" valign="top">
Accepts an style propety of an HTML property with a numeric value. <br>
Such as height, width, borderWidh, fontSize, opacity, etc.<br>
properties must be camelized 'font-size to fontSize', <br>
this option also accepts color values such as background, borderColor, color.
</td>
</tr>
<tr>
<th class="option">
scrollX or scrollLeft
</th>
<td class="default">
-
</td>
<td class="values">
Any positive numeric value
</td>
<td class="desc">
Horizontally scrolls the overflowed elements
</td>
</tr>
<tr class="alter">
<th class="option">
scrollY or scrollTop
</th>
<td class="default">
-
</td>
<td class="values">
Any positive numeric value
</td>
<td class="desc">
Vertically scrolls the overflowed elements
</td>
</tr>
</table>
</td>
</tr>
</table>
<hr class="dotted" />
<br>
</body>
</html>