Parallax Sections Plugin

The Parallax Sections plugin creates engaging parallax scrolling effects for website sections using shortcodes. It applies background images to content blocks and moves them at different speeds than the foreground content, creating a 3D depth illusion.

Features

Reliable Image Coverage - Background images maintain full coverage during all scroll positions ✅ Smooth Performance - Hardware-accelerated animations with optimized JavaScript ✅ Responsive Design - Works seamlessly across all device sizes ✅ Theme Integration - Automatically adapts to light/dark themes ✅ Content Separation - Content stays in markdown files, not hardcoded in templates

Usage

Basic Shortcode Structure


This is the content that will scroll over the parallax background.

Required Attributes

id (Required): A unique identifier for the parallax section. Example: id="hero-section" Note: Must be unique across the entire page

background_image (Required): The URL to the background image. Example: background_image="/uploads/my-parallax-background.jpg" Supported formats: JPG, PNG, WebP, SVG Recommended: High-resolution images (1920x1080 or larger)

Optional Attributes

speed (Optional): Controls parallax scroll speed. Default: 0.5 0.0 = Background stays fixed (classic parallax) 0.3 = Subtle movement (recommended for hero sections) 0.5 = Moderate movement (default) 0.8 = More pronounced movement Example: speed="0.3"

effect (Optional): Animation effect type. Default: "scroll" "scroll": Standard parallax scrolling effect Example: effect="scroll"

overlay_color (Optional): Text overlay color for better readability. Color names: red, blue, green, black, white Hex codes: #0066cc, #ff0000 RGBA: rgba(0,0,0,0.5) Example: overlay_color="rgba(0,0,0,0.6)"

overlay_opacity (Optional): Overlay transparency. Default: 0.4 Range: 0.0 (transparent) to 1.0 (opaque) Example: overlay_opacity="0.7"

Examples

Hero Section with Dark Overlay


Welcome to Our Site

Experience stunning parallax effects that bring your content to life Get Started

About Section with Blue Overlay


About Our Company

Our story with a blue overlay for better readability

Services Section with Red Overlay


Our Services

Professional services with red overlay for emphasis

Contact Section with Custom Styling


Get In Touch

Ready to start your next project? Let's talk!

Note: This example uses flexbox with flex-direction: column and gap: 15px to ensure buttons stack vertically on all screen sizes and never overlap. The min-width: 120px ensures consistent button sizing.

Best Practices

Image Selection

---

The Parallax Sections plugin is designed to be reliable, performant, and easy to use. It automatically handles the complexities of image coverage, scroll performance, and responsive design while maintaining clean, maintainable code.