Yep there is a code for that Its a a masonry style gallery that displays your images, video and audio in tiles each with optional animated slideshows, flip tiles to reveal text and calls to action.
Please note in the preview - link https://kwikbitz.online/kwik_photation.html - There are over 50 images - you may not need that many, each tile has 3 images that are animated - you don’t need to have that, likewise you don’t need to have the tile flip to display text or a call to action. Some of the tiles (I can’t remember which ones) flip to display text/call to action and some flip to display text with the option to open a modal/lightbox. The modal lightbox can also scroll through all the images in a tile and display a caption. Oh, you can also set/use video and audio rather than an image
The preview is set with NO gutters hence images are ‘block to block’ - but you can set gutters (gaps between the images). It’s basically very flexible. It is available on codecanyon here BUT the preview is an updated version not yet downloadable - but waiting for review update so not too sure exactly how many days before downloadable - however, if you want the preview version just ‘purchase’ the current version then send me a mail and I’ll send over the preview version - if you need any modifications let me know as would be happy to create those for you too,
I’m a massive fan of this plugin http://scriptpie.com/cubeportfolio/live-preview/ (WP version exists). It’s a bit more of a full screen result than the pop up in your demo but theres various options, it works brilliantly and looks great.
Other wise there are several on CodeCanyon which work like the demo you shared. here or here among several others