Skip to main content
100%

Hello stimulusjs

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Jan 9, 2018
Created on Jan 9, 2018

This example demonstrates a simple interactive slideshow and greeting form built with Stimulus and D3. It shows how Stimulus controllers manage UI state, such as navigating between emoji slides with next/previous buttons, and how user input in a text field triggers a D3-powered greeting. The slideshow uses `data-controller`, `data-target`, and `data-action` attributes to bind behavior, while D3’s `d3.select` updates the page text. The slide visibility is toggled via CSS classes, and the current index is stored in Stimulus’s data map. The code relies on the Stimulus application and controller classes, plus D3 for DOM manipulation.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes