Answer the question
In order to leave comments, you need to log in
What plugin does this?
Hello. Please tell me what plugin is used to hide cards. For example, 3 cards are displayed and under them there is a button to show more, and when pressed, 3 more are shown, etc.?
Answer the question
In order to leave comments, you need to log in
This is usually done using AJAX (and therefore using JS, jQuery, etc.)
Your script responsible for issuing the result must be able to return raw data (or a fully rendered block) based on the page number passed to it.
As soon as you click the "show next" button, your Ajax accesses your backend - passes the pagination number, then either receives dry data and renders it into a block in the DOM, or receives a block already rendered by the backend and inserts it into the corresponding block in the DOM. Accordingly, a new block of data appears on your site.
Another option is to get a lot of rendered data from the backend at once, distribute them into blocks, and hide all blocks except the first one (display: none). Then, at the push of a button, block after block will open. This is less "kosher", because, firstly, data is transmitted that may not be needed. And secondly (with a very large amount of data), they will have to be limited, and the user may want more.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question