by autoexec · 1mo ago · 0 comments
Why link to an article instead of an actual picture?
The page you linked failed to show any image without JS enabled (although my ad blocker might share some of the blame, there are a handful of trackers on that site) and the article doesn't link directly to it either. I'm guessing you mean the pic here: https://www.thetechoutlook.com/wp-content/uploads/2023/01/Ma...
Issues: - I would avoid autoplay without JavaScript--the only way to make it pause is with hover-state (animation-play-state), it's not possible to start/stop permanently without scripting afaik, though you could make it only auto-play when the cursor is within the borders but not over a button. This is solvable with scripted buttons. - using anchors as bookmarks will snap page scroll to them when you click. Scroll containers and scroll markers[1] proposes to fix this (see the link at the top of the article below), but it's still implemented only in chromium-based browser. This is also solvable with a small amount of JavaScript.
See https://css-tricks.com/css-only-carousel/ (the auto-play once didn't work for me, but see caveat above regarding automatic play without scripting).