Using Displacement Map to Animate a Brick Wall?

I have no idea if this is where this goes, but oh well.

I’m trying to make a brick wall with a displacement map, but I’d then like to animate the bricks to push in and out according to a animated displacement map. How would I go about applying an animated displacement map that isn’t manipulating individual bricks one at a time? Ideally it would remain in the same geo.

Something similar to this effect I suppose:


Nevermind, I found a tutorial that shows how to do this using the same idea with a “pin board” effect. Just in case anyone searches this in the future, here’s the method I found that works: