MAKING WEB DEVELOPMENT
EASIER AND
MORE FUN
Dom Flowt is a lightweight JavaScript Library for performing animations on elements as they appear into a users view
Get Started
Download
Download Dom Flowt now and get started making your website more fun and interactive!
Bolt v1.0
2024 Oct 22
Introducing Dom Flowt Bolt also known as version “1” is just the beginning of a simpler world of animations. Packed with a good starter of animation types and functionality.
Download
There are no new versions of Dom Flowt in development at the moment. Please visit us often for updates.
Get Started
Before you start, make sure you have downloaded the ZIP folder and added the files to your project.
Make sure you have referenced the CSS file.
<link rel="stylesheet" href="$yourCSSFileLocation" />
Make sure you have referenced the JS file.
<script src="$yourJSFileLocation"></script>
Add the watch method inside the "scroll" event listener on the element of your choice. Normally you would add the watch method to your window element.
window.addEventListener("scroll", function() {
DomFlowt.watch();
});
And there you go, Dom Flowt should work on your application.
Documentation
Attributes
View all attributes used in the latest version of the Dom Flowt library.
Is Visible
dom-flowt-is-visible
Dom Flowt uses the "is visible" attribute to determine whether the element is visible on screen or not.
This attribute is required for all elements and must be given the value of false.
<div dom-flowt-is-visible="false"></div>
Type
dom-flowt-type
The type attribute is used to specify what type of animation should be used when the element animates on screen.
Default Value: "fade"
<div dom-flowt-type="fade"></div>
Duration
dom-flowt-duration
The duration attribute is used to specify the duration of the animation.
The time is measured in milliseconds
Default Value: "500"
<div dom-flowt-duration="500"></div>
Delay
dom-flowt-delay
The delay attribute is used to specify the duration of the delay the animation must have.
The time is measured in milliseconds
Default Value: "0"
<div dom-flowt-delay="0"></div>
Repeat
dom-flowt-repeat
The repeat attribute is used to specify whether the animation should happen again when the element appears on screen more than once.
To prevent repeat behaviour, add the repeat attribute and give it the value of "no-repeat"
Default Value: "repeat"
<div dom-flowt-repeat="repeat"></div>
Animation Types
View all animation types used in the latest version of the Dom Flowt library
Fade
<div dom-flowt-is-visible="false" dom-flowt-type="fade"></div>
The "fade" type currently does not have any variants.
Pop
<div dom-flowt-is-visible="false" dom-flowt-type="pop-up"></div>
<div dom-flowt-is-visible="false" dom-flowt-type="pop-down"></div>
The "pop" type currently supports 2 variants
Float
<div dom-flowt-is-visible="false" dom-flowt-type="float-up"></div>
<div dom-flowt-is-visible="false" dom-flowt-type="float-down"></div>
<div dom-flowt-is-visible="false" dom-flowt-type="float-right"></div>
<div dom-flowt-is-visible="false" dom-flowt-type="float-left"></div>
The "float" type currently supports 4 variants
"float-up"
"float-down"
"float-right"
"float-left"
Flip
<div dom-flowt-is-visible="false" dom-flowt-type="flip-vertical"></div>
<div dom-flowt-is-visible="false" dom-flowt-type="flip-horizontal"></div>
The "flip" type currently supports 2 variants
"flip-vertical"
"flip-horizontal"
Jump
<div dom-flowt-is-visible="false" dom-flowt-type="jump"></div>
The "jump" type currently does not have any variants.
Why Use Dom Flowt?
Dom Flowt was made for developers to easily use and extend or modify it.
Very easy to setup and use
The Dom Flowt library requires you to reference the JS and CSS files into your project and call one method for it to work!
Flexible and easy to extend or modify
Adding new animation types in Dom Flowt can be done with CSS alone! No need to edit any of the JavaScript!
Extremely lightweight
This library is specific to just animating elements when they come into a users view, it is not bloated with other functionalities!