-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.html
More file actions
505 lines (502 loc) · 29.9 KB
/
Index.html
File metadata and controls
505 lines (502 loc) · 29.9 KB
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
<!DOCTYPE html>
<html lang="en-za">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Joseph Morukhuladi">
<meta name="description"
content="Dom Flowt is a lightweight JavaScript Library for performing animations on elements as they appear into a users view">
<!--Open Graph Protocol-->
<meta property="og:title" content="Dom Flowt JavaScript Library">
<meta property="og:type" content="website">
<meta property="og:url" content="https://domflowt.co.za/">
<meta property="og:image" content="https://domflowt.co.za/content/images/dom_flowt-03_180x180.png">
<meta property="og:description"
content="Dom Flowt is a lightweight JavaScript Library for performing animations on elements as they appear into a users view">
<!--Open Graph Protocol End-->
<link rel="icon" href="./content/images/dom_flowt-03_180x180.png">
<link rel="apple-touch-icon" href="./content/images/dom_flowt-03_57x57.png" type="image/png" sizes="57x57">
<link rel="apple-touch-icon" href="./content/images/dom_flowt-03_60x60.png" type="image/png" sizes="60x60">
<link rel="apple-touch-icon" href="./content/images/dom_flowt-03_152x152.png" type="image/png" sizes="152x152">
<link rel="apple-touch-icon" href="./content/images/dom_flowt-03_180x180.png" type="image/png" sizes="180x180">
<script src="./content/js/lib/oscs.js?v=4"></script>
<link rel="stylesheet" href="./content/css/main.css" media="screen" oscs>
<script>
OSCS.version = 4;
</script>
<title>Dom Flowt JavaScript Library</title>
</head>
<body>
<main class="main">
<div class="main-side">
<div class="menu">
<div class="menu-header">
<div>Menu</div>
<div class="icon-container" onclick="closeMenu()">
<img class="invert" src="./content/icons/arrow_back_ios_24dp_000_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="back" />
</div>
</div>
<div class="menu-icons">
<a class="icon-container" href="https://github.com/Staviro/dom-flowt" title="dom flowt github"
target="_blank">
<img class="invert" src="./content/icons/github-icon.svg" width="28" height="28" alt="github" />
</a>
<div class="icon-container" onclick="closeMenu(); openModal('#download-modal')">
<img src="./content/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg" width="28"
height="28" alt="download icon" />
</div>
</div>
<div class="menu-section">
<div class="menu-secton-header">Pages</div>
<ul dom-flowt-overflow="hidden">
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a target="_blank"
href="./examples/semi-e-commerce/Index.html" title="example" onclick="closeMenu()">
<span>Semi E Commerce Example</span>
</a></li>
</ul>
</div>
<div class="menu-section">
<div class="menu-secton-header">Attributes</div>
<ul dom-flowt-overflow="hidden">
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#attr-visible"
title="to attribute is visible" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Is Visible</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#attr-type"
title="to attribute type" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Type</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#attr-duration"
title="to attribute duration" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Duration</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#attr-delay"
title="to attribute delay" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Delay</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#attr-repeat"
title="to attribute repeat" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Repeat</span>
</a></li>
</ul>
</div>
<div class="menu-section">
<div class="menu-secton-header">Animation Types</div>
<ul dom-flowt-overflow="hidden">
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#type-fade"
title="to type fade" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Fade</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#type-pop"
title="to type pop" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Pop</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#type-float"
title="to type float" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Float</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#type-flip"
title="to type flip" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Flip</span>
</a></li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right"><a href="#type-jump"
title="to type jump" onclick="closeMenu()">
<img src="./content/icons/arrow_forward_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
width="16" height="16" alt="arrow" />
<span>Jump</span>
</a></li>
</ul>
</div>
</div>
</div>
<div class="main-body">
<header class="nav-container" dom-flowt-is-visible="false" dom-flowt-type="jump">
<nav>
<div class="left-content">
<a class="brand" href="/" title="dom flowt home">
<img src="./content/images/dom flowt-03.png" width="26" height="26" alt="dom flowt logo" />
</a>
</div>
<div class="right-content">
<ul>
<li><a href="https://github.com/Staviro/dom-flowt/blob/main/License.txt"
title="dom flowt license" target="_blank">License</a></li>
<li><a href="https://github.com/Staviro/dom-flowt" title="dom flowt github"
target="_blank">GitHub</a></li>
<li><a href="#documentation" title="to documentation">Documentation</a></li>
<li><a href="./examples/semi-e-commerce/Index.html" target="_blank"
title="example">Example</a></li>
</ul>
<div class="nav-icons">
<a class="icon-container" href="https://github.com/Staviro/dom-flowt"
title="dom flowt github" target="_blank">
<img class="invert" src="./content/icons/github-icon.svg" width="28" height="28"
alt="github" />
</a>
<div class="icon-container" onclick="openMenu()">
<img class="invert"
src="./content/icons/menu_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.svg" width="28"
height="28" alt="menu" />
</div>
</div>
</div>
</nav>
</header>
<section class="landing">
<div class="content landing-content">
<h1 class="text-gradient" dom-flowt-is-visible="false" dom-flowt-type="float-left">
ADD ANIMATIONS AND TRANSTIONS WITH EASE. <br>
DEVELOP YOUR WEBSITE LIKE NEVER BEFORE
</h1>
<p dom-flowt-is-visible="false" dom-flowt-type="float-right">
Dom Flowt is a lightweight JavaScript Library for performing animations on elements as they
appear into a users view
</p>
<a dom-flowt-is-visible="false" dom-flowt-type="pop-up" href="#get-started"
title="Get Started Section" class="btn">Get Started</a>
</div>
</section>
<section>
<h2 dom-flowt-is-visible="false" dom-flowt-type="float-right">
Download
</h2>
<p dom-flowt-is-visible="false" dom-flowt-type="float-right">
Download Dom Flowt now and get started making your website more fun and interactive!
</p>
<div class="download-card" dom-flowt-is-visible="false" dom-flowt-type="pop-up">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg" alt="download" />
</div>
<div class="download-card-version">
Version 2.0
</div>
<div class="download-card-release-date">
2026 March 27
</div>
<div class="download-card-description">
Introducing Dom Flowt, the beginning of a simpler world of
animations. Packed with a good starter of animation types and functionality.
</div>
<a class="btn" type="button" href="./content/lib/stable/dom-flowt2.0.0.zip">
<img width="22" height="22"
src="./content/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download icon" />
<div>Download</div>
</a>
</div>
<p>There are no new versions of Dom Flowt in development at the moment. Please visit us often for
updates.</p>
</section>
<section id="get-started">
<h2 dom-flowt-is-visible="false" dom-flowt-type="float-right">
Get Started
</h2>
<p dom-flowt-is-visible="false" dom-flowt-type="float-right">Before you start, make sure you have
downloaded the ZIP folder and added the files to your project.</p>
<ol>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right">
<p>Make sure you have referenced the CSS file.</p>
<code aria-hidden="true">
<link rel="stylesheet" href="$yourCSSFileLocation" />
</code>
</li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right">
<p>Make sure you have referenced the JS file.</p>
<code aria-hidden="true">
<script src="$yourJSFileLocation"></script>
</code>
</li>
<li dom-flowt-is-visible="false" dom-flowt-type="float-right">
<p>Add the watch method inside the "load" event listener. This is for elements that may already
be in view at the point where the site is done loading.</p>
<code aria-hidden="true">
window.addEventListener("load", function() { <br>
<div class="tab"></div>DomFlowt.watch(); <br>
});
</code>
</li>
</ol>
<p>And there you go, Dom Flowt should work on your application.</p>
</section>
<section id="documentation">
<h2>
Documentation
</h2>
<section id="attributes" class="p-x-0">
<h3 dom-flowt-is-visible="false" dom-flowt-type="float-right">
Attributes
</h3>
<p dom-flowt-is-visible="false" dom-flowt-type="float-right">
View all attributes used in the latest version of the Dom Flowt library.
</p>
<div class="attr-list">
<div id="attr-visible" class="attr-card" dom-flowt-is-visible="false"
dom-flowt-type="flip-vertical">
<div class="attr-card-name">Is Visible</div>
<div class="attr-card-full-name">dom-flowt-is-visible</div>
<div class="attr-card-description">
<p>Dom Flowt uses the "is visible" attribute to determine whether the element is visible
on screen or not.</p>
<p>This attribute is required for all elements and must be given the value of false.</p>
</div>
<code aria-hidden="true">
<div dom-flowt-is-visible="false"></div>
</code>
</div>
<div id="attr-type" class="attr-card" dom-flowt-is-visible="false"
dom-flowt-type="flip-vertical">
<div class="attr-card-name">Type</div>
<div class="attr-card-full-name">dom-flowt-type</div>
<div class="attr-card-description">
<p>The type attribute is used to specify what type of animation should be used when the
element animates on screen.</p>
<p>Default Value: "fade"</p>
</div>
<code aria-hidden="true">
<div dom-flowt-type="fade"></div>
</code>
</div>
<div id="attr-duration" class="attr-card" dom-flowt-is-visible="false"
dom-flowt-type="flip-vertical">
<div class="attr-card-name">Duration</div>
<div class="attr-card-full-name">dom-flowt-duration</div>
<div class="attr-card-description">
<p>The duration attribute is used to specify the duration of the animation.</p>
<p>The time is measured in milliseconds</p>
<p>Default Value: "500"</p>
</div>
<code aria-hidden="true">
<div dom-flowt-duration="500"></div>
</code>
</div>
<div id="attr-delay" class="attr-card" dom-flowt-is-visible="false"
dom-flowt-type="flip-vertical">
<div class="attr-card-name">Delay</div>
<div class="attr-card-full-name">dom-flowt-delay</div>
<div class="attr-card-description">
<p>The delay attribute is used to specify the duration of the delay the animation must
have.</p>
<p>The time is measured in milliseconds</p>
<p>Default Value: "0"</p>
</div>
<code aria-hidden="true">
<div dom-flowt-delay="0"></div>
</code>
</div>
<div id="attr-repeat" class="attr-card" dom-flowt-is-visible="false"
dom-flowt-type="flip-vertical">
<div class="attr-card-name">Repeat</div>
<div class="attr-card-full-name">dom-flowt-repeat</div>
<div class="attr-card-description">
<p>The repeat attribute is used to specify whether the animation should happen again
when the element appears on screen more than once.</p>
<p>To prevent repeat behaviour, add the repeat attribute and give it the value of
"no-repeat"</p>
<p>Default Value: "repeat"</p>
</div>
<code aria-hidden="true">
<div dom-flowt-repeat="repeat"></div>
</code>
</div>
</div>
</section>
<section id="types" class="p-x-0">
<h3>
Animation Types
</h3>
<p>
View all animation types used in the latest version of the Dom Flowt library
</p>
<div class="type-list">
<div id="type-fade" class="type-card">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons/animation_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="type-card-name">Fade</div>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="fade">
<div dom-flowt-is-visible="false" dom-flowt-type="fade"></div>
</code>
<p>The "fade" type currently does not have any variants.</p>
</div>
<div id="type-pop" class="type-card">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons/animation_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="type-card-name">Pop</div>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="pop-up">
<div dom-flowt-is-visible="false" dom-flowt-type="pop-up"></div>
</code>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="pop-down">
<div dom-flowt-is-visible="false" dom-flowt-type="pop-down"></div>
</code>
<div>
<p>The "pop" type currently supports 2 variants</p>
<ul>
<li>"pop-up"</li>
<li>"pop-down"</li>
</ul>
</div>
</div>
<div id="type-float" class="type-card" dom-flowt-overflow="hidden">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons/animation_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="type-card-name">Float</div>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="float-up">
<div dom-flowt-is-visible="false" dom-flowt-type="float-up"></div>
</code>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="float-down">
<div dom-flowt-is-visible="false" dom-flowt-type="float-down"></div>
</code>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="float-right">
<div dom-flowt-is-visible="false" dom-flowt-type="float-right"></div>
</code>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="float-left">
<div dom-flowt-is-visible="false" dom-flowt-type="float-left"></div>
</code>
<div>
<p>The "float" type currently supports 4 variants</p>
<ul>
<li>"float-up"</li>
<li>"float-down"</li>
<li>"float-right"</li>
<li>"float-left"</li>
</ul>
</div>
</div>
<div id="type-flip" class="type-card">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons/animation_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="type-card-name">Flip</div>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="flip-vertical">
<div dom-flowt-is-visible="false" dom-flowt-type="flip-vertical"></div>
</code>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="flip-horizontal">
<div dom-flowt-is-visible="false" dom-flowt-type="flip-horizontal"></div>
</code>
<div>
<p>The "flip" type currently supports 2 variants</p>
<ul>
<li>"flip-vertical"</li>
<li>"flip-horizontal"</li>
</ul>
</div>
</div>
<div id="type-jump" class="type-card">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons/animation_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="type-card-name">Jump</div>
<code aria-hidden="true" dom-flowt-is-visible="false" dom-flowt-type="jump">
<div dom-flowt-is-visible="false" dom-flowt-type="jump"></div>
</code>
<p>The "jump" type currently does not have any variants.</p>
</div>
</div>
</section>
</section>
<section>
<h2>
Why Use Dom Flowt?
</h2>
<p>
Dom Flowt was made for developers to easily use and extend or modify it.
</p>
<div class="use-list" dom-flowt-overflow="hidden">
<div class="use-card" dom-flowt-is-visible="false" dom-flowt-type="float-right"
dom-flowt-duration="1000">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons//note_add_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="use-card-title">Very easy to setup and use</div>
<p class="use-card-desc">The Dom Flowt library requires you to reference the JS and CSS files
into your project and call one method for it to work!</p>
</div>
<div class="use-card" dom-flowt-is-visible="false" dom-flowt-type="float-down"
dom-flowt-duration="1000">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons//note_add_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="use-card-title">Flexible and easy to extend or modify</div>
<p class="use-card-desc">Adding new animation types in Dom Flowt can be done with CSS alone! No
need to edit any of the JavaScript!</p>
</div>
<div class="use-card" dom-flowt-is-visible="false" dom-flowt-type="float-up"
dom-flowt-duration="1000">
<div class="icon-container">
<img width="32" height="32"
src="./content/icons//note_add_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"
alt="download" />
</div>
<div class="use-card-title">Extremely lightweight</div>
<p class="use-card-desc">This library is specific to just animating elements when they come into
a users view, it is not bloated with other functionalities!</p>
</div>
</div>
</section>
<footer>
<div class="icon-container">
<img width="64" height="64" src="./content/images/dom flowt-03.png" alt="download" />
</div>
<ul>
<li><a href="https://github.com/Staviro/dom-flowt/blob/main/License.txt" title="dom flowt license"
target="_blank">License</a></li>
<li><a href="https://github.com/Staviro/dom-flowt" title="dom flowt github"
target="_blank">GitHub</a></li>
</ul>
<div>
<p class="text-center">© Dom Flowt 2024. Joseph Morukhuladi</p>
</div>
</footer>
</div>
</main>
<script>
OSCS.scripts("body", [
{
path: "./content/lib/stable/dom-flowt.js",
fetchpriority: "high"
},
{
path: "./content/js/app.js",
defer: true,
fetchpriority: "low"
}
]);
</script>
</body>
</html>