A modern progress bar for form completion. Check out the demo!
<script src="https://cdn.jsdelivr.net/npm/@idriskhenchil/fort@1.1.0/dist/fort.min.js"></script>
<form class="fort">
<input type="text" placeholder="Name">
<input type="email" placeholder="Email">
</form>
new Fort('.fort').solid("#6638F0");
Ignoring fields:
Add the fort-ignore
class to a field to ignore it from counting towards the progress.
<input type="text" placeholder="Name" class="fort-ignore">
Changing the colors:
-
Solid -
Fort('.target').solid("#009DFF")
-
Gradient -
Fort('.target').gradient("#009DFF", "#47B9FF")
Note: Only pass two color values.
Please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
This project is licensed under the MIT License - see the LICENSE.md file for details
Fort.js is authored and maintained by Idris Khenchil