Here's a unique spinning loading bar perfect for a ranch website. It combines:
- Rustic Western theme (wood texture, hay-inspired colors)
- Spinning rope animation (circular progress bar)
- Cattle branding effect (burnt iron texture on text)
- Responsive design
All in a single HTML file with HTML, CSS, and minimal JS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ranch Loading Screen</title>
<style>
/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Trebuchet MS', sans-serif;
background: url('https://via.placeholder.com/1920x1080?text=Rustic+Wood') center/cover;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background-color: #f4f1de;
}
/* Loading Container */
.loader {
text-align: center;
color: #3a251d; /* Dark leather brown */
}
.loader h1 {
font-size: 3rem;
margin-bottom: 2rem;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
/* Cattle branding effect */
background: url('https://via.placeholder.com/300x100?text=Burnt+Texture') center/cover;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: bold;
}
/* Spinning Rope Loader */
.rope-loader {
position: relative;
width: 150px;
height: 150px;
margin: 0 auto;
}
.rope-loader svg {
transform: rotate(-90deg);
}
.rope-loader circle {
fill: none;
stroke-width: 8;
stroke-linecap: round;
stroke: #d4a373; /* Hay color */
stroke-dasharray: 440;
stroke-dashoffset: 440;
animation: spin 4s linear infinite;
}
.rope-loader circle.bg {
stroke: rgba(211, 163, 115, 0.2); /* Light hay */
stroke-width: 6;
}
/* Text below loader */
.loading-text {
margin-top: 1.5rem;
font-size: 1.2rem;
letter-spacing: 2px;
color: #6c584c;
font-weight: bold;
animation: pulse 2s ease-in-out infinite;
}
/* Animations */
@keyframes spin {
0% { stroke-dashoffset: 440; }
100% { stroke-dashoffset: 0; }
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
/* Responsive */
@media (max-width: 600px) {
.loader h1 { font-size: 2rem; }
.loading-text { font-size: 1rem; }
}
</style>
</head>
<body>
<div class="loader">
<h1>Riverbend Ranch</h1>
<div class="rope-loader">
<svg viewBox="0 0 140 140">
<circle class="bg" cx="70" cy="70" r="65"></circle>
<circle cx="70" cy="70" r="65" style="stroke: #e07a5f;"></circle>
</svg>
</div>
<div class="loading-text">Roping the horizon...</div>
</div>
<!-- Optional: Simulate loading progress -->
<script>
const loadingText = document.querySelector('.loading-text');
const phrases = [
'Herding cattle...',
'Fixing fences...',
'Roping the horizon...',
'Saddle up!',
'Loading pasture views...'
];
let i = 0;
setInterval(() => {
loadingText.textContent = phrases[i];
i = (i + 1) % phrases.length;
}, 2000);
</script>
</body>
</html>
What’s happening here:
-
Rustic Background:
- Uses a wood texture (replace placeholder with
url('your-ranch-photo.jpg')).
-
Cattle Brand Text Effect:
background-clip: text gives the burnt iron look for "Riverbend Ranch".
-
Spinning Rope Loader:
- SVG circle with
stroke-dashoffset animation mimics a lasso spinning.
- The inner circle (
#e07a5f) rotates, while the outer circle is a subtle hay-colored background.
-
Loading Text Animation:
- "Roping the horizon..." pulses opacity.
- JS script cycles through Western-themed phrases every 2 seconds.
-
Responsive Design:
- Shrinks text/font sizes on mobile devices.
Customization Ideas:
- Swap
https://via.placeholder.com/... URLs with:
- Ranch photos (e.g., barns, horses, sunset fields).
- A GIF of rotating cattle or spinning lasso.
- Change colors:
#3a251d → Dark leather
#d4a373 → Hay/gold
#e07a5f → Warm rust/red
- Add a percentage loader: Update JS to increment
stroke-dashoffset dynamically.
Save this as .html and open in a browser. It’s ready to lasso your users’ attention while your ranch site loads! 🌄🎉