Theme Demonstration Hub
HUFLAW Domain Author Resource
This page connects the three demonstration references used to build and maintain the current HUFLAW Blogger theme. It also adds a theme-safe sticky background demonstration built with the classes already supported by the theme.
Use this page as the master reference when presenting the theme to clients, testing layout ideas, or linking authors to the correct guide.
Reference pages
Gap fillers worth adding to the demos
Utility coverage
Display and positioning
Add live examples for sticky-top, position-relative, top-0, start-0, and end-0.
Media coverage
More ratio examples
Add live examples for ratio-5x4, ratio-16x9, and ratio-21x9.
Text coverage
Long-string handling
Add a text-break example for URLs, long email addresses, and legal citations.
Sticky background insert demonstration
This is the safest way to create the effect you described without inventing a new theme language. The background stays sticky while the content cards scroll over it. The extra classes below are local to this one demo block only.
<style>
#sticky-insert-demo{
position:relative;
}
#sticky-insert-demo .sticky-stage{
position:relative;
}
#sticky-insert-demo .sticky-backdrop{
position:sticky;
top:0;
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
border-radius:14px;
}
#sticky-insert-demo .sticky-backdrop img{
width:100%;
height:100vh;
object-fit:cover;
display:block;
}
#sticky-insert-demo .sticky-overlay{
position:absolute;
inset:0;
display:flex;
align-items:center;
justify-content:center;
padding:1.5rem;
text-align:center;
}
#sticky-insert-demo .sticky-overlay-inner{
max-width:760px;
}
#sticky-insert-demo .sticky-foreground{
position:relative;
margin-top:-70vh;
padding-bottom:2rem;
}
#sticky-insert-demo .sticky-card{
max-width:760px;
margin:0 auto 1.5rem auto;
}
@media (max-width: 991.98px){
#sticky-insert-demo .sticky-foreground{
margin-top:-50vh;
}
}
</style>
<section id="sticky-insert-demo" class="mb-5" aria-labelledby="sticky-insert-title">
<div class="sticky-stage">
<div class="sticky-backdrop shadow-sm">
<img src="IMAGE-URL" alt="Decorative background image" loading="lazy" />
<div class="sticky-overlay">
<div class="sticky-overlay-inner border rounded shadow-sm p-4 bg-archive">
<p class="text-secondary fs-7 mb-2">Advanced theme demonstration</p>
<h2 id="sticky-insert-title" class="mb-3">Sticky background insert</h2>
<p class="mb-0">As the user scrolls, the foreground cards move across a fixed visual stage.</p>
</div>
</div>
</div>
<div class="sticky-foreground">
<div class="sticky-card border rounded shadow-sm p-4 bg-archive">
<h3 class="fs-5 mb-3">Card One</h3>
<p class="mb-0">Use this for a practice-area intro, a client message, or a featured content block.</p>
</div>
<div class="sticky-card border rounded shadow-sm p-4 bg-archive">
<h3 class="fs-5 mb-3">Card Two</h3>
<p class="mb-0">The image remains visually anchored while content appears to slide over it.</p>
</div>
<div class="sticky-card border rounded shadow-sm p-4 bg-archive">
<h3 class="fs-5 mb-3">Card Three</h3>
<p class="mb-3">This is a good place for a call to action or a short explanation of the layout pattern.</p>
<p class="mb-0"><a class="btn jt-btn-primary" href="#">Primary action</a></p>
</div>
</div>
</div>
</section>
Optional enhancement
If you want a soft motion effect on the overlay panel only, this small script is safe and does not interfere with the theme.
<script>
document.addEventListener('scroll', function () {
var demo = document.getElementById('sticky-insert-demo');
if (!demo) return;
var overlay = demo.querySelector('.sticky-overlay-inner');
if (!overlay) return;
var rect = demo.getBoundingClientRect();
var shift = Math.max(-24, Math.min(24, rect.top * -0.04));
overlay.style.transform = 'translateY(' + shift + 'px)';
});
</script>
How I would improve the existing files
html-css-stylesheet.html
- Remove Font Awesome and keep Bootstrap Icons only.
- Add a theme-styled intro wrapper instead of bare opening markup.
- Add cross-links to the other two references.
- Add utility demonstrations for ratios, sticky behavior, text-break, and supported buttons.
- Remove inline centering styles and let the theme handle layout.
theme-style-sheet.html and class-definitions.html
- Add a shared “Related demo pages” block.
- Add a live sticky background section to the theme style sampler.
- Add more utility demos for
g-3,sticky-top,text-break, and extra ratio classes. - Keep these two pages as the official theme-safe references.