Skip to main content
100%

D3 test

✓ Published0🌍 Public
LLeyou Hong
Last edited Oct 20, 2020
Created on Oct 20, 2020
Forked from D3 test

This example shows a simple, animated face built with SVG shapes in React. The code uses D3 v5 selection methods to create a yellow circle for the head, two circles for eyes, and a path for a mouth generated with the `d3.arc` API. A rectangular eyebrow is animated using chained `transition().duration(2000)` calls, moving it vertically and back. Rendering is done entirely through SVG elements, with static positions defined in `index.js` and loaded via `bundle.js`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes