Minimalistic and professional page loader designed for architectural websites. Clean, modern, and highly customizable.
Add this code to your HTML pages to implement the loader:
<!-- 1. Add CSS in <head> -->
<link rel="stylesheet" href="page-loader.css">
<!-- 2. Add Loader HTML (right after <body>) -->
<div id="page-loader" class="page-loader"
data-auto-init="true"
data-min-time="800"
data-show-percentage="true"
data-brand-text="YOUR BRAND">
<div class="loader-content">
<div class="loader-shape"></div>
<div class="loader-brand">YOUR BRAND</div>
<div class="loader-line"></div>
<div class="loader-percentage">0%</div>
<div class="loader-text">Loading...</div>
</div>
</div>
<!-- 3. Add JavaScript before </body> -->
<script src="page-loader.js"></script>
Clean and professional aesthetic perfect for architectural websites
6 different loader styles to match your brand
Built-in dark mode for modern interfaces
Optimized for all screen sizes and devices
Automatic setup with data attributes
Easy configuration via JavaScript options
Customize the loader programmatically:
// Manual initialization with custom options
const loader = new PageLoader({
minDisplayTime: 1000, // Minimum display time (ms)
fadeOutDuration: 600, // Fade out duration (ms)
showPercentage: true, // Show loading percentage
darkMode: false, // Enable dark mode
brandText: 'YOUR BRAND', // Custom brand text
onComplete: () => { // Callback when complete
console.log('Page loaded!');
}
});
// Manual control
loader.show(); // Show loader
loader.hide(); // Hide loader
loader.updateText('Loading...'); // Update text
loader.setProgress(50); // Set progress (0-100)