I
I
Igor Fedorov2016-04-04 11:03:19
css
Igor Fedorov, 2016-04-04 11:03:19

How to make this kind of post output + loading (Non-standard grid)?

9b1bf75565134aff942f59b18042ff2b.png

Good afternoon. There is such a layout. Please tell me how to implement the grid shown in the picture?
The order of the posts is not important.

And how to implement the loading of posts on the click of a button?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2016-04-04
@dimasmagadan

everything is simple, the algorithm is as follows:
by clicking on the button, we show the preloader and turn to the server,
transfer the current page, categories, etc.,
in response we get an array with posts (more correctly) or an already generated piece of html (simpler, but worse),
instead of the preloader we insert the received data.
Or do you need a ready-made code?

I
Ilya Gorenburg, 2016-04-04
@gorenburg

Here is such a cool plugin for such a grid: masonry.desandro.com
To load posts, you just need to write a function to contact the server and request the next portion of posts via ajax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question