-
Notifications
You must be signed in to change notification settings - Fork 5
Extensions Expanding Background
Compatible With: Group and Section blocks (core/group, designsetgo/section) Since: 1.3.0 Status: Production Ready
The Expanding Background Extension creates a scroll-driven background effect where a small, blurred circle expands to fill the entire section as users scroll. This creates a dramatic reveal effect perfect for section transitions and visual storytelling.
Features:
- Scroll-driven expansion animation
- Configurable background color via theme palette
- Adjustable initial circle size
- Blur amount control for soft edges
- Animation speed multiplier
- Trigger offset and completion point controls
- Performance-optimized with Intersection Observer
- Select a Group or Section block
- Open the block settings sidebar
- Find the Expanding Background panel
- Toggle Enable expanding background to ON
- Set your background color in the Colors panel (under "Expanding Background Color")
- Scroll in the frontend to see the effect (preview shown only on frontend)
Toggle the scroll-driven expanding background effect on or off.
Set in the Colors panel (appears when enabled):
- Choose from your theme's color palette
- Use custom colors via the color picker
- The circle expands with this color until it fills the section
Starting radius of the circle in pixels:
- Range: 20px - 300px
- Default: 50px
- Smaller values create a more dramatic "point of origin" effect
- Larger values start with a more visible color area
Initial blur that fades as the circle expands:
- Range: 0px - 50px
- Default: 30px
- Creates soft, organic edges on the expanding circle
- Set to 0 for sharp edges
Speed multiplier for the expansion effect:
- Range: 0.5x - 2x
- Default: 1x
- Lower values = slower, more gradual expansion
- Higher values = faster, more aggressive expansion
Percentage of scroll progress before the effect starts:
- Range: 0% - 100%
- Default: 0%
- Use to delay the effect start until user has scrolled partway into the section
Percentage of scroll through section where effect reaches 100%:
- Range: 50% - 100%
- Default: 80%
- Lower values = effect completes earlier (faster)
- Higher values = effect completes later (slower)
Create dramatic transitions between page sections:
White section -> scroll -> expands to blue background
Draw attention to important sections as users scroll:
Content appears normal, then background color "blooms" behind it
Create chapters or scene transitions in long-form content:
Each section reveals its own color as the story progresses
Add visual interest to landing pages without overwhelming:
Hero section -> expanding background reveals next section's color
DO:
- Use colors that complement your existing design
- Set appropriate trigger offset if section content needs to be read first
- Test the completion point to match your scroll rhythm
- Combine with content that remains readable over the background
- Use on sections with sufficient height for the effect to be visible
DON'T:
- Apply to every section (diminishes impact)
- Use colors that make content unreadable
- Set blur too high (can look blurry/unfinished)
- Forget that the effect is only visible on the frontend
- Use on very short sections (effect won't complete)
Important: The expanding background effect is only visible on the frontend when you scroll. In the editor, you'll see an informational notice explaining this. This is by design - scroll-driven effects require actual page scrolling to function.
To preview:
- Save your changes
- View the page on the frontend
- Scroll through the section to see the expansion effect
- Uses CSS radial gradients for the expanding circle
- IntersectionObserver tracks element visibility
- Scroll position calculated as percentage through element
- Effect interpolates from initial state to full coverage
- Clean up functions prevent memory leaks
- The circle expands from the center of the section
- Background is positioned behind section content via z-index
- Ensure the block is a Group or Section block
- Verify "Enable expanding background" is toggled ON
- Check that you've set a background color
- View on the frontend (not editor) and scroll
- Ensure the section is tall enough for scrolling
- Open the Colors panel in block settings
- Look for "Expanding Background Color > Background Color"
- Select a color - default is light gray (#e8e8e8)
- Adjust initial circle size for desired starting point
- Reduce blur if edges look too soft
- Modify speed if expansion feels too fast/slow
- Tune trigger offset and completion point for timing
- Choose a background color with sufficient contrast
- Consider adding text shadows to content
- Ensure text color works on both initial and final states
- Use the Section block's overlay options for additional contrast
Auto-generated from
docs/extensions/EXPANDING-BACKGROUND.md. To update, edit the source file and changes will sync on next push to main.
- Accordion
- Blobs
- Breadcrumbs
- Card
- Comparison Table
- Countdown Timer
- Counter Group
- Divider
- Flip Card
- Form Builder
- Grid
- Icon
- Icon Button
- Icon List
- Image Accordion
- Map
- Modal
- Modal Api Reference
- Modal Auto Triggers
- Modal Fse Compatibility
- Modal Gallery Navigation
- Modal Next Phase
- Modal Performance Fixes
- Modal Security Audit
- Modal Security Fixes Summary
- Modal Trigger
- Pill
- Progress Bar
- Reveal
- Row
- Scroll Accordion
- Scroll Gallery
- Section
- Slider
- Table Of Contents
- Tabs
- Timeline
- Animation
- Background Video
- Block Animations
- Clickable Group
- Custom Css
- Expanding Background
- Grid Mobile Order
- Grid Span
- Max Width
- Responsive Visibility
- Reveal Control
- Scroll Parallax
- Sticky Header
- Text Alignment Inheritance
- Text Reveal
- Ai Assisted Development
- Best Practices Summary
- Block Controls Organization
- Block Development Best Practices Comprehensive
- Block Exclusion Guide
- Control Reorganization
- Design System
- Wordpress Block Editor Best Practices
- Color Controls Pattern
- Custom Css Filters
- Performance Css Strategy
- Width Css Strategy Implementation
- Width Layout Patterns
- Antigravity Audit
- Card Block Audit
- Claude Audit
- Comprehensive Audit
- Cursor Audit
- Scroll Accordion Stacking Notes
- Security Review 1.2.1
- 2026 02 11 Icon Search Aliases Design
- 2026 02 14 Overlay Header Design
- 2026 02 15 Deactivation Block Migrator Design