Creating a 4-card carousel like this (see picture) with only vanilla HTML+CSS? Is it doable?

Hi. Is it possible to code this type of picture-card carousel with only HTML+CSS? A carousel with 4 cards, displaying 3 at a time with buttons to click forwards and backwards aaand to make the cards go in a loop? (after picture 4 comes picture 1 then 2, 3,4,1 etc? )
1 Reply
13eck
13eck11mo ago
If you want any form of interaction (buttons, for example) you need JavScript. HTML/CSS can get you a repeating animation of scrolling through but the user won't be able to stop, speed up, or reverse the process.