Skip to main content
100%

Using SVG and D3

✓ Published0🌍 Public
JJokerhan88
Last edited Mar 10, 2020
Created on Mar 10, 2020
Forked from Using SVG and D3

This example uses SVG and D3 to draw a simple, static face composed of a yellow circle, two eyes, two animated eyebrows, and a mouth arc. The right eyebrow moves up and down via chained transition calls, each lasting two seconds. The code selects the SVG element with `d3.select`, appends and positions shapes with `.attr`, and constructs the mouth using D3’s `arc` generator. The scene is centered by translating a group element, and the SVG background is set to red through the D3 style method.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes