Skip to main content
100%

Fork of HTML Starter

✓ Published0🌍 Public
Ee-ines
Last edited Apr 1, 2021
Created on Mar 31, 2021
Forked from HTML Starter

This example renders a grid of 18 cartoon faces using React components, each with randomized facial features such as eye offset, eye radius, mouth radius, and stroke width. The faces are composed of SVG circles and a D3 arc path for the mouth, assembled via reusable components like `FaceContainer`, `BackgroundCircle`, `Eyes`, and `Mouth`. D3’s `arc` API generates the mouth shape, while `range` from D3 creates the array of faces. The SVG output is positioned using a centered `<g>` transform, with all styling handled through inline SVG attributes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes