Smiley Face Part 6
✓ Published2🌍 Public
A grid of twenty-five smiling faces fills the screen, each face randomly varying in rotation, stroke thickness, gradient colors, eye size and color, eyebrow position, and mouth dimensions. The faces are generated with React, rendered as SVG, and animated so eyebrows wiggle with random timing. Built from modular components, the visualization leverages the D3 arc API for mouth and tongue shapes and CSS variables for interactive hover effects that turn eyebrows blue.
AI-generated descriptionSmiley Face Tutorial with React. Following Curran's tutorial below but also including:
- Basic hover effects on the eyebrows (turns them blue on-hover)
- Animation to raise and lower the eyebrows (random number of times and speed)
- Single parameter to select how many faces should appear on the x and y aspects of the svg (e.g. a rangeBasic of 5 gives 25 (5 * 5) faces)
- Random variation on most parts of the face(s)
Source: Datavis 2020 Episode 10 - Let's Make a Face Part VI (React & D3) - Compartmentalizing Complexity
Looking forward to learning how to apply this logic to data visualizations!!
MIT Licensed