Fork of Bowl of Fruit - Animated Transitions
✓ Published0🌍 Public
A bowl of fruit animates as apples are eaten, added, or replaced with lemons, demonstrating smooth transitions between states. Circles representing fruit enter with a growing radius, move horizontally to new positions, and change color and size when their type changes; exiting fruit shrink and disappear. The visualization uses D3 v5’s selection and transition API, including `.transition().duration()`, with ordinal color and radius scales mapping fruit types to visual properties. Data is a model array, and each change triggers a re-render after timed delays, creating a choreographed sequence.
AI-generated descriptionMIT Licensed