Skip to main content
100%

svg circle

✓ Published1🌍 Public
TTehran Mammadov
Last edited Jun 14, 2022
Created on Jun 14, 2022
Forked from HTML Starter

This example renders 100 horizontal rectangles on an SVG canvas, with a circular mask applied so only the area inside a 200-pixel-radius circle centered on the screen is visible. The rectangles are spaced every 20 pixels vertically, each 10 pixels tall and spanning the full window width. The code creates the SVG elements using the native `document.createElementNS` API, building a mask containing a white circle and attaching it to each rectangle via the `mask` attribute. The visualization demonstrates basic SVG masking and procedural element creation in a browser environment.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes