Skip to main content

Plasma Ball Background

BackgroundPlasmaBall Backgrounds & Effects JavaScript

Plasma-globe effect with flickering electric filaments behind the site.

Published · by Christopher Alberto

Open full screen

At a glance

Component
BackgroundPlasmaBall
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

A glowing core sends flickering electric filaments toward the sphere’s edge, generated procedurally with recursive midpoint displacement (the classic lightning-bolt technique).

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/BackgroundPlasmaBall/

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