Drag to move around

I am trying to achieve a similar result (Book of Flowers — Mosaic) with the drag functionality on a grid. I know I am not going to achieve the same result because this website uses probably three.js or new technologies way far from my knowledge, but if anybody have any suggestion on how to move around dragging the page/ grid, it would be enough. Thank you very much!