Skip to main content
100%

Basic Shapes in SVG

✓ Published0🌍 Public
Tthenlpstudent
Last edited May 28, 2023
Created on May 6, 2023
Forked from HTML Starter

A black-and-white animation of concentric circles expands and contracts around a central point, with the radius cycling through increasing values. The SVG is manipulated entirely through basic JavaScript, creating and appending circle elements in a loop of alternating colors. The animation uses `setInterval` to update the state every millisecond, while `document.createElementNS` and `setAttributeNS` build each circle with the SVG namespace. The code defines a custom `computeState` function to progress the radius and delta, with the loop resetting when the radius exceeds 400.

AI-generated description

Artwork generated via basic JS SVG manipulation

MIT Licensed

Similar vizzes