Skip to main content

Rotating Ball Background

BackgroundRotatingBall Backgrounds & Effects JavaScript

Point-cloud sphere spinning behind the site, built from a Fibonacci sphere.

Published · by Christopher Alberto

Open full screen

At a glance

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

Points are spread evenly over a sphere (Fibonacci-sphere method), projected through a simple perspective camera and spun around a tilted axis, in the season’s accent colour.

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

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