Skip to main content
100%

Smiley Face Part 6

✓ Published2🌍 Public
TTom-S82
Last edited Mar 17, 2020
Created on Mar 15, 2020
Forked from Smiley Face Part 4

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 description

Smiley 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

Similar vizzes