5 ms·
Something I'm struggling to implement at the moment is image carousels. I don't necessarily need something that has full functionality without JavaScript, but i
by dietrichepp 5y ago
Something I'm struggling to implement at the moment is image carousels. I don't necessarily need something that has full functionality without JavaScript, but it would be nice to provide some kind of progressive enhancement, and make something that works both on desktop and mobile.
- smoldesu 5y agoI wonder if you could abuse the <marquee> tag to get halfway there. It won't be pretty or feature-filled, but it should at least render properly on all devices.
- dietrichepp 5y ago<marquee> is fairly solidly deprecated. If I just wanted an auto-scrolling set of images, I can conjure that up with some CSS animations.
- pdenton 5y agoHere's a starting point: https://www.w3.org/WAI/tutorials/carousels/ https://www.w3.org/WAI/tutorials/carousels/
- dietrichepp 5y agoThanks, but I also want the carousel to have reasonable behavior for mobile devices. So there's a lot of synthesis from different carousels online that I'm doing. The synthesis is the hard part.
- deleted 5y ago[deleted]
- Eduard 5y agohttps://css-tricks.com/css-only-carousel/ https://css-tricks.com/css-only-carousel/
- dietrichepp 5y agoThanks, I saw that one too.