Fork of SVG Fundamentals
✓ Published1🌍 Public
This SVG visualization demonstrates a traffic light sequence using three stacked circles, with the middle yellow light flashing through an animation. The graphic is rendered via raw SVG markup in an HTML file, using `<rect>`, `<circle>`, and `<path>` elements to define the housing, lights, and supporting pole. The yellow light animates its fill attribute using SVG’s `<animate>` element, which changes the fill from none to yellow over a one-second duration with an indefinite repeat. The other circles use static fill colors (red and green) with opacity set to 0.2, while the gray base circles and dark gray rectangle provide contrast.
AI-generated descriptionA demonstration of SVG shapes.
MIT Licensed