Add elegant loading animations to WordPress sites with full customization. Lightweight & easy to use!
Features • Demo • Installation • Usage • FAQ • Contributing
| Feature | Description |
|---|---|
| 🎨 3 Loader Types | CSS animations (Spinner/Dots/Pulse), custom GIFs, or text-based |
| 🎛️ Live Customizer | Real-time preview in WordPress admin |
| 🏎️ 0.2s Load Time | Optimized vanilla JS (No jQuery bloat) |
| 🖌️ Color Picker | HEX/RGB controls for background & loader |
| 📱 Mobile Optimized | Perfectly scales on all devices |
1. Navigate to Plugins → Add New
2. Search "Y Loader"
3. Install & Activate1. Download latest .zip from GitHub Releases
2. Go to Plugins → Add New → Upload Plugin
3. Select file and activate- Go to Settings → Y Loader
- Choose loader type:
- 🌀 CSS Animation (select style/color)
- 🖼️ Custom Image (upload GIF/SVG)
- 🔤 Text Only (enter message)
- Set background color
- Save changes
/* Add to theme's additional CSS */
.y-loader {
--animation-speed: 1.5s; /* Change speed */
--bg-opacity: 0.9; /* Overlay transparency */
}✅ Yes! Compatible with WP Rocket, W3 Total Cache, etc.
// Add to functions.php
add_filter('y_loader_display', function($show) {
return !is_page('contact'); // Hide on contact page
});- Deactivate plugin
- Delete via WordPress plugins list
- (Optional) Remove
y-loaderentry fromwp_optionstable
# Development setup
git clone https://github.com/yaratul/y-loader.git
cd y-loader
npm install
npm run buildWorkflow:
- Fork the repository
- Create a feature branch (
git checkout -b feat/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feat/amazing-feature) - Open a PR
GPL-2.0 © YA Ratul
```
