// Entering Step Zero
d3.select("#step-zero").on('stepin',function(e) {
console.log("We've arrived at STEP ZERO")
d3.select("#step-zero").style('background-color', 'aqua')
d3.select("#bubblePolygon").classed('hidden', true)
})
// Leaving Step Zero
d3.select("#step-zero").on('stepout',function(e) {
console.log("We've left STEP ZERO")
// d3.select("#step-zero").style('background-color', 'aqua')
})
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter