Fork of Smiley Face Part 6(React.js Practice)
A grid of twenty-five randomly generated smiley faces fills the viewport, each face varying in eye color, facial proportions, and orientation. The faces are constructed from modular React components that compose SVG circles, rectangles, and D3 arc paths for the mouth and tongue. Animated eyebrows raise and lower at random intervals, and gradient fill backgrounds rotate per face. React’s component model, combined with D3’s arc generator, structures the visualization, while inline SVG animations and CSS hover effects drive the dynamic behavior.
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!!