Flow Field Background
BackgroundFlowField
Backgrounds & Effects JavaScript
Ambient particle flow field fixed behind the whole site, tinted by the season palette.
Published · by Christopher Alberto
Live demo
Open full screenAt a glance
- Component
BackgroundFlowField- Category
- Backgrounds & Effects
- Used as
- Animated site background (Global Options)
- Built with
- PHP, Twig, SCSS, JavaScript
- Platform
- WordPress · Flynt theme · Timber/Twig · ACF Pro
About this component
Thousands of particles drift along a noise-driven flow field on a Canvas 2D layer fixed behind every page. Colours are read from the active season palette, so the effect matches whichever theme is live.
How to enable
Not a page block: choose it under Global Options → Site Background → Effect. Only one background runs at a time, site-wide, and it honours prefers-reduced-motion.
Under the hood
Components/BackgroundFlowField/
-
_style.scssStyles (SCSS) 15 lines -
functions.phpFields & data (PHP) 11 lines -
index.twigMarkup (Twig) 9 lines -
script.jsBehaviour (JavaScript) 160 lines