03 · Playground

# PlaygroundPlayground

Small things I've built to understand how something works. Move the sliders. With reduced motion turned on, everything here holds still.

Wave amplitude

18Unitpxrememvwvh

Animate

Shape engine · My research

## Harmonic

**TL;DR** Shapes rebuilt from spinning circles. Ordinary Fourier drawings melt at the corners; Harmonic handles corners separately, so they stay sharp at any level of detail. Pick a shape to watch it morph, or take the tour. Drag Harmonics to change the detail.

Harmonics

5

Plain Fourier44 numbers · corners melt

Harmonic44 numbers · 9 corners kept exact

Draw it
Tour

Both panels use the same 44 numbers. Harmonics sets the detail.

Text animation

## Quill

**TL;DR** Type anything, pick any Google Font, a drawing style and an effect, then watch it written out stroke by stroke.

This experiment needs JavaScript.

## Booth geometry

From Bazaar

A market laid out from real booth measurements, with zone colors spaced evenly around the color wheel. How vendors get placed stays private.

## Sealed experiment

In progress

Preview hidden until unlocked

[redacted]

Unlocks with a key

Interface craft · Agency work

## Interactions

**TL;DR** Interface details I build for client sites, as live demos. Each one is my own code, shown with neutral content.

### Proximity cards

Cursor distance drives each card

Hover state

01

#### Senses the cursor

Each card measures its distance from the pointer and drives one CSS variable. No per-card listeners.

Nearest

02

#### Glass deepens

As you approach, the blur and border firm up and the card lifts. The glass treatment is from a client build.

Falloff

03

#### Smooth gradient

Intensity eases with distance, so the whole grid responds, not just the one under the cursor.

Glow

04

#### Sweeping highlight

The nearest card shows a glow bar with a light sweep crossing it, a small flourish that rewards attention.

Accessible

05

#### Reduced motion

With reduced motion on, the lift and sweep hold still; the proximity tint stays, since it is not animation.

Touch

06

#### Works on phones

No hover on touch, so a tap sets the active card instead. Same visual language, different input.

### Infinite marquee

From a plugin I built for the agency

A single track, duplicated and scrolled, with the edges masked to a soft fade. Hover to pause. It flips between horizontal and vertical per breakpoint in the real plugin, and stops entirely for reduced motion.

### Icon hover

From an Elementor icon widget

home

clock

mail

star

refresh

heart

Each glyph scales and brightens around its own center on hover, using transform-box so SVG paths pivot on themselves rather than the viewport. Hover is gated to pointer devices, so touch never gets stuck, and reduced motion is honored.

New experiments land here as I build them.

---
Source: https://joshcool.com/playground
