I have a practice project using Angular 17 and TailwindCSS. Currently have 35 sets of images and I want it to look like this screenshot below. This should be 140 images, 4 slides with 35 images in every slide of the carousel but as sample I only want to know how this curve thing to be done.
This is currently my html.
<div class="flex place-content-center w-full absolute top-[20%] left-auto right-auto mr-auto ml-auto">
<div class="grid grid-flow-col grid-rows-5 gap-4">
@for (item of carouselItems; track $index) {
<div id="imageCard" class="w-[236px] h-[350px]">
<img class="w-full h-full rounded-2xl" src="{{item.imageUrl}}" alt="">
</div>
}
</div>
</div>
If there are more efficient approach than what I currently did, please let me know.
I haven't worked with Angular, but here's a quick draft of the underlying methods you'll probably need. This is in React, but the principles should be framework-agnostic.
You might need to adjust the logic to take odd and even amounts into account.