Snippets Collections
function bubbleHover() {
  for (var e = document.querySelectorAll('circle'), t = 0; t < e.length; t++) {
    e[t].addEventListener('mouseover', function () {
      fillColor(this)
    })
  }
}
function fillColor(e) {
  e.setAttribute('style', 'fill:' + colors[Math.floor(Math.random() * colors.length)])
}
star

Fri Jul 08 2022 14:40:07 GMT+0000 (Coordinated Universal Time)

#javascript #ui #cute

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension