Hero & Special Sections
Ready-made structural section patterns - from a classic Hero with breadcrumbs, through efficient GPU Parallax and sticky sections, to the advanced Hero Cutout system.
Hero Section & Breadcrumbs
A welcome section with an overlay that ensures text legibility over photos, integrated with breadcrumb navigation.
<section class="page-header has-overlay" style="background-image: url('bg.jpg');">
<!-- Darkening overlay -->
<div class="overlay bg-overlay overlay-80"></div>
<div class="container position-relative z-10">
<h1 class="text-white">Page Title</h1>
<!-- Breadcrumbs -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item is-active">Current page</li>
</ol>
</nav>
</div>
</section>
Smooth Parallax (GPU)
An efficient parallax effect based on hardware acceleration - delivers a smooth 60 FPS even on older mobile devices.
Scroll the page
The background moves at a different speed
<div class="parallax-container" style="height: 400px;">
<img src="background.jpg" alt="Background" class="parallax-bg">
<div class="parallax-content">
<h2 class="text-white">Content on the parallax</h2>
</div>
</div>
Stacking Sections (Sticky Sections)
A "stacking cards" effect while scrolling - each subsequent section slides over the previous one and sticks to the top of the screen.
Step 1: Strategy
Scroll down
Step 2: Implementation
The section magnetically snaps into place!
Step 3: Success
<!-- Variant with magnetic snapping -->
<div class="stacking-container-snap">
<section class="section-stacked bg-light">
<h2>Section 1</h2>
</section>
<section class="section-stacked bg-primary text-white">
<h2>Section 2</h2>
</section>
</div>
Hero Cutout System
An advanced concave-corner effect - a content container "cuts out" a hole in the background photo while keeping perfectly rounded corners.
Build this with molique
This white container perfectly cuts out the photo underneath!
<section class="hero-with-cutout" style="--cutout-bg: var(--bg-body);">
<img src="photo.jpg" alt="Background">
<!-- Cutout in the bottom-right corner (.cutout-md-br) -->
<div class="cutout-wrapper cutout-md-br w-100 w-md-50">
<div class="p-4">
<h2>Title</h2>
</div>
</div>
</section>