Skip navigation
built-in carousel micro-interactions with css scroll-driven animation 🧑‍🍳
0:00 / 0:24

built-in carousel micro-interactions with css scroll-driven animation 🧑‍🍳

jhey ʕ•ᴥ•ʔ

@jh3yy149K followers

Visit on X
1,190 likesDownloadOriginal post

44,692 views

built-in carousel micro-interactions with css scroll-driven animation 🧑‍🍳 li { view-timeline: --item inline } li::scroll-marker { animation: grow linear both; animation-timeline: --item; } progressive enhancement for drag ↓

27 Comments

Comments from the original post on X (Twitter)

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

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

    26 likes

  • Jake Dohm's profile picture

    @JakeDohm

    Is there a modern carousel component/framework based on all this new tech??

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @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

  • Steven van Wel's profile picture

    @stevenvanwel

    ooeee this is wonderful 👨‍🍳

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

    some of these new css things are so so useful 👷

  • Mehdi · Motionary's profile picture

    @mehdi_made

    This looks nice 😍

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

    thanks! 🙏

    1 like

  • Franklin Williams's profile picture

    @Maduemezia90188

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

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

    all of the carousels! 😅

    1 like

  • Franklin Williams's profile picture

    @Maduemezia90188

    10+/10

  • Chuks Gabriel's profile picture

    @chuksgabriel247

    Smooth and clean 👌

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

    🙏🙏

  • Panos's profile picture

    @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

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

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

    1 like

  • Panos's profile picture

    @Panoptimos

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

  • Paul Murray's profile picture

    @plmrry

    wait so this is *not* scroll-snap? RIP scroll-snap?

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @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

  • freddie's profile picture

    @frederic_ooo

    never ceases to amaze

    1 like

  • jhey ʕ•ᴥ•ʔ's profile picture

    @jh3yy

    tryin' to get back into the groove 🙏

  • Jan Nicklas's profile picture

    @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