Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/exzenter/gradient-fluid-block/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A WordPress Gutenberg block that functions like the core Group block but with an optional WebGL fluid dynamics background.
Installation
- Navigate to the
fluid-gradient-blockfolder - Run
npm installto install dependencies - Run
npm run buildto compile the block - Copy the entire
fluid-gradient-blockfolder to your WordPresswp-content/plugins/directory - Activate the plugin in WordPress Admin
Usage
- In the Gutenberg editor, add a new block and search for "Fluid Gradient Group"
- Add any blocks inside (paragraphs, headings, images, etc.)
- In the block settings sidebar, toggle "Enable Fluid Dynamics"
- Customize the fluid simulation using the available controls:
- Presets: Choose from Default, Dreamy, Intense, Smoke, Water, Fire, Black on White, Neon
- Simulation: Resolution settings
- Behavior: Dissipation, pressure, curl
- Mouse Input: Splat size and force
- Bloom: Glow effect settings
- Colors: Saturation, brightness, rainbow mode, dark mode
- Import/Export: Copy and paste settings between blocks
Global API
The plugin exposes a global function to initialize fluid blocks programmatically. This is useful for SPA transitions or dynamic content loading.
// Initialize or re-initialize all fluid blocks
if (window.initFluidGroupBlocks) {
window.initFluidGroupBlocks();
}
Development
# Install dependencies
npm install
# Start development with watch mode
npm run start
# Build for production
npm run build
Features
- ✅ Works like the native Group block (accepts any blocks inside)
- ✅ Full alignment, spacing, and color controls
- ✅ Interactive WebGL fluid simulation background
- ✅ 8 built-in presets
- ✅ Comprehensive customization options
- ✅ Import/Export settings via copy/paste
- ✅ Mobile touch support
License
MIT