Show First 3 items of loop

Hi everyone!
I have a list of events and I want to show in a specific div only the first 3 items.
Then, I would like to show the next 3 in another div and etc.
Is there a way to do that? or I should use JS?
thanks

Yes, you can use $events->limit(3) and $events->offset(3).

$pages->limit()

$pages->offset()

2 Likes

works perfectly - thanks!