Sliding puzzle
✓ Published0🌍 Public
TThanaporn-sk
Last edited Apr 4, 2017
Created on Apr 4, 2017
This sliding puzzle divides a neon background image into a grid of tiles, with one tile removed to create a hole. An animation continuously swaps the hole with a random adjacent tile, creating a perpetually shuffling mosaic. The code uses D3 v4 to bind data to HTML `div` elements and positions them via absolute CSS, while `d3.shuffle` and `d3.transition` orchestrate the tile movement. Each tile’s background offset is calculated from its grid position, revealing the underlying image fragment.
AI-generated descriptionJust an After Dark-style sliding puzzle.
forked from <a href='http://bl.ocks.org/veltman/'>veltman</a>'s block: <a href='http://bl.ocks.org/veltman/f26eeceed3ab15787daf9f5ea4ba1468'>Sliding puzzle</a>