Skip to main content
100%

trying to do it right

✓ Published1🌍 Public
Cclara7227
Last edited Nov 9, 2022
Created on Nov 9, 2022
Forked from Geometry

This example creates an interactive, full-window SVG composition using raw JavaScript and the React framework. It shows a grid of vertical and horizontal black lines whose visibility is selectively masked by two overlapping circular regions, producing a striking crosshatch pattern with a central circular window. The code constructs SVG elements programmatically, defining two masks—one with a white circle on a black background and another with a black circle on white—to control which lines appear. It leverages the SVG `mask` API and dynamic `rect` generation to achieve the layered effect, with no external data source.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes