axi0motion

Light column

A swirling pillar of light ignites, leans toward the pointer and surges on a click.

  • element
  • webgl
  • pointer
  • click
  • background
  • light
  • since 0.2

Background Studio: tune it below, then copy the code

Your system asks for reduced motion: the demo shows its final state and nothing moves.

Live demo

Light column example

Controls

0.13
1

Code

It follows the controls above: change an option and the code changes with it.

<link rel="stylesheet" href="/axi0/motion/motion.css?v=6">
<script src="/axi0/motion/motion.js?v=10" defer></script>

<axi0-light-column cover></axi0-light-column>

The wrappers: LightColumn.tsx (React, TypeScript) and LightColumn.vue (Vue). Both render the same attributes as the HTML; the loader does the rest.

Options

AttributeDefaultWhat it does
colors#f6a04d,#8a7dffthe color at the foot and at the top
width0.13the pillar's width, as a share of the box height
speed1how fast it swirls
coverfalsefill the nearest positioned parent, behind its content

Accessibility

Decorative: the canvas is hidden from screen readers and takes no pointer events. Frames run only on screen in a visible tab. Reduced motion: the pillar stands lit and still, without the ignition. Without WebGL a soft glow stands in.

Size

light-column.js is 1.4 KB gzip, with gl.js 2.1 KB it needs. A page loads the loader (2.7 KB) and core.js (1.4 KB) once, whatever it uses.