MCPcopy Index your code
hub / github.com/WebDevSimplified/wordle-clone / danceTiles

Function danceTiles

script.js:15473–15486  ·  view source on GitHub ↗
(tiles)

Source from the content-addressed store, hash-verified

15471}
15472
15473function danceTiles(tiles) {
15474 tiles.forEach((tile, index) => {
15475 setTimeout(() => {
15476 tile.classList.add("dance")
15477 tile.addEventListener(
15478 "animationend",
15479 () => {
15480 tile.classList.remove("dance")
15481 },
15482 { once: true }
15483 )
15484 }, (index * DANCE_ANIMATION_DURATION) / 5)
15485 })
15486}

Callers 1

checkWinLoseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected