built-in carousel micro-interactions with css scroll-driven animation 🧑🍳
@jh3yy149K followers
44,692 views
27 Comments
Comments from the original post on X (Twitter)

@jh3yy
saw this pattern ↓ nice candidate for css ::scroll-marker + ::scroll-button combined with scroll animation (falls back to <button> 🤙)
26 likes

@JakeDohm
Is there a modern carousel component/framework based on all this new tech??
1 like

@jh3yy
could throw one together 🤙 never sure how much to include 🤔 have a few scroll demos that you can point an agent at too on my site (web component <draggable-scroll>) include: - drag (inertia) - cyclical - markers - buttons - animation no deps 🚀
2 likes

@stevenvanwel
ooeee this is wonderful 👨🍳
1 like

@jh3yy
some of these new css things are so so useful 👷

@mehdi_made
This looks nice 😍
1 like

@jh3yy
thanks! 🙏
1 like

@Maduemezia90188
Nice, if CSS Carousels are supported in all major browsers we will be able to build many carousels as we want.
1 like

@jh3yy
all of the carousels! 😅
1 like

@Maduemezia90188
10+/10

@chuksgabriel247
Smooth and clean 👌
1 like

@jh3yy
🙏🙏

@Panoptimos
Is Horizon theme's codebase a masterclass in using CSS over JS that we could point our LLM to and if no, why?
1 like

@jh3yy
erm – it definitely has some cool things in there 💯 depends what you're looking for!
1 like

@Panoptimos
Developing a theme now and want to say to AI: "See how the CSS goat is doing it? Do that."

@plmrry
wait so this is *not* scroll-snap? RIP scroll-snap?
1 like

@jh3yy
ha - there is still scroll-snapping 🙌 jus' combined with some of the newer things and scroll-padding to get the snap offset 🧐
1 like

@frederic_ooo
never ceases to amaze
1 like

@jh3yy
tryin' to get back into the groove 🙏

@jantimon
Oh cool! I was working on sth quite similar: and ran into 3 webkit (iOS18-iOS27) and 1 firefox bugs overflow-x: auto animation timeline firefox (nightly)
1 like




