How to make such blocks?

Good afternoon. Please tell me how to organize on these are the blocks that will be tailored automatically to fit the screen. Unit 4 continuously in one line, without any indentation. Did some digging in the source code they are functions of JS.
The website on which it is organized
1b4875dc63864d0aa51d56ca238e1daf.jpg
July 9th 19 at 10:36
3 answers
July 9th 19 at 10:38
if no animation, bootstrap grid
container-fluid ? col-lg-3 ? - magali.Armstrong87 commented on July 9th 19 at 10:41
: masonry.desandro.com - Peter.Oberbrunner84 commented on July 9th 19 at 10:44
like it ) - Peter.Oberbrunner84 commented on July 9th 19 at 10:47
iam.beyonce.com/tagged/my_work here's an example masonry.desandro.com - Peter.Oberbrunner84 commented on July 9th 19 at 10:50
July 9th 19 at 10:40
I think flexbox will help you, you see the lessons on YouTube Or as said above, bootstrap, foundation and other frameworks with grids.
July 9th 19 at 10:42
bootstrap

Find more questions by tags CSSHTMLJavaScript