A lightweight, reusable CSS-only loading animation library for web projects. No JavaScript required! 🚀
Install via npm:
npm install vtx-css-loaders
Import the library in your main CSS file:
@import 'vtx-css-loaders/dist/loaders.min.css';
Now, you can use the loaders in your HTML:
<div class="loader">
<div class="bars">
<div></div>
<div></div>
<div></div>
</div>
</div>
If you want to use the library without npm, you can load it via a CDN :
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/vtx-css-loaders/dist/loaders.min.css"
/>
If you want full control, you can copy the CSS file into your project:
cp node_modules/vtx-css-loaders/dist/loaders.min.css styles/custom-loaders.css
Modify styles/custom-loaders.css
as needed.
Instead of editing the library, you can override CSS variables in your own stylesheet:
:root {
--loader-color: red;
--loader-size: 30px;
}
This will change the color and size of all loaders!
This project is licensed under the MIT License – free to use, modify, and distribute.
Want to add more animations? Feel free to fork the project and submit a pull request!
If you run into issues, open an issue on GitHub.
Happy coding! 💻🔥