Skip to main content
100%

JS Bin

✓ Published0🌍 Public
KKacieW
Last edited Jun 27, 2017
Created on Jun 27, 2017

The visualization is a dog image selector that displays a photo of a dog when a user clicks its name in a list. Each click makes the corresponding image visible, while hiding all others, and inserts a caption with the dog's name above the image. The page uses plain JavaScript with `addEventListener` for click handling, `classList.add` to toggle the `active` class, and `createElement`/`insertBefore` to manage the caption. No external libraries are used; the images are loaded from static Flickr URLs via `img` tags.

AI-generated description

Similar vizzes