Skip to main content
100%

svg lines

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

This visualization displays a series of vertical rectangles across the full viewport, creating a pattern resembling spaced lines. The page generates 100 SVG rectangles, each 10 pixels wide and spaced 20 pixels apart, using raw DOM manipulation via `document.createElementNS` to construct the SVG elements. The rectangles span the full height of the window, which is dynamically set using `window.innerWidth` and `window.innerHeight`. The code relies on standard web APIs for SVG creation and attribute setting, with no external libraries or data sources involved.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes