Skip to main content
100%

SVG + D3

✓ Published1🌍 Public
MMarta
Last edited Sep 26, 2024
Created on Sep 26, 2024
Forked from SVG + JS

A full-screen SVG pattern of 100 horizontal and vertical bars alternates in opacity according to two circular masks, revealing a central disc and its inverse. Using D3 v7, the code appends `rect` elements via `selectAll().data().join()`, sizing them by window dimensions. The masks are defined in SVG by combining a background `rect` with a `circle`, where white reveals and black conceals.

AI-generated description

Trying to learn how this thing works.

ISC Licensed

Similar vizzes