Skip to main content

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

Open full screen

At 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.

Options

This component isn't added as a page block, so it has no per-page fields — see "About this component" for where it is configured.

Under the hood

Components/BackgroundFlowField/

  • _style.scss Styles (SCSS) 15 lines
  • functions.php Fields & data (PHP) 11 lines
  • index.twig Markup (Twig) 9 lines
  • script.js Behaviour (JavaScript) 160 lines