Fan-Rib Wipe v0.1.0 · MIT

CORNER-HINGED ROTATIONAL WIPE · ORIGIN: WEAREARS

A rigid pivot sweep across any corner.

A novel visual implementation of corner-pivoted rotational masking—built in zero-dependency TypeScript & CSS with perimeter-normalized speed across desktop and mobile viewports.

npm install fan-rib-wipe
BASE LAYER · SURFACE A

WearEars Spatial Architecture

Corner hinge keeps two viewport edges static while a single rigid fan rib sweeps the next view into frame.

PIVOTFixed Vertex
QUADRANT0° → 90°
RUNTIME0 Deps
REVEALED LAYER · SURFACE B

Zero Bleed.
Perimeter Locked.

Clip polygon switches seamlessly from triangle to quad at 45° inside one requestAnimationFrame tick.

OVERSCAN-4° → +95°
SEAM ERROR< 0.5 px
LICENSEMIT

SCROLL-DRIVEN DECK MODE (`FanRibDeck`)

Scroll down to rotate through all 4 corners in sequence.

Slide 01 · Waiting for wipe
01 / 04 · SCROLL DOWN ↓

Pinned at Top-Left.
Starts cleanly along the edge.

Keep scrolling gently—the sticky runway drives a top-left clockwise sweep into Slide 02.

02 / 04 · CORNER 01 → TOP-LEFT CW

Lacquer Ebony
meets dark contrast.

Next transition hinges from Top-Right counter-clockwise, keeping the rib flush against the incoming surface.

03 / 04 · CORNER 02 → TOP-RIGHT CCW

Perimeter speed
stays even on any screen.

Whether viewed on a 21:9 monitor or a tall phone, arc-length mapping prevents the sweep from racing or stalling.

04 / 04 · CORNER 03 → BOTTOM-RIGHT CW

Four corners.
One consistent identity.

Developed for WearEars, packaged with MIT license for anyone to adopt or customize.

ARCHITECTURE & DERIVATION

Five engineering problems solved in 4KB.

01

Why Corner Anchor?

Two adjacent viewport borders act as natural 0° and 90° walls, locking the transition cleanly to a single quadrant with zero four-edge bleed.

02

Radius Coverage

Fixed at max(vw, vh) × 1.65 + 240px—strictly greater than diagonal √(vw² + vh²) across ultrawide 21:9 and mobile viewports.

03

45° Polygon Handoff

Switches cleanly from 3-vertex triangle (θ ≤ 45°) to 4-vertex quad (θ > 45°) to avoid tan(θ) divergence near 90°.

04

Perimeter Velocity

Maps progress along perimeter vw + vh via atan2 so edge intersection speed stays constant regardless of aspect ratio.

05

Zero Gap & Overscan

Clip polygon and blade transform compute from one thetaDeg sample per frame with -4°..95° fade buffers and overflow: clip.