Basic Carousel
A slide carousel with prev/next arrows, dots and a polite live region.
6 個のフレームワーク中級
An infinite, auto-scrolling logo strip that pauses on hover and reduced motion.
<!-- An infinite logo marquee with no assets: each logo is a gradient chip with
initials. The list is rendered twice and the track slides -50%, so the loop
is seamless. It pauses on hover and, under reduced motion, stops entirely -
the wrapper is scrollable so the logos stay reachable when the motion is off. -->
<section class="group max-w-3xl overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" aria-roledescription="carousel" aria-label="Trusted by leading teams">
<style>@keyframes adysreLogoScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}</style>
<div class="flex w-max [animation:adysreLogoScroll_24s_linear_infinite] group-hover:[animation-play-state:paused] motion-reduce:[animation-play-state:paused]">
<ul class="flex shrink-0 items-center gap-8 pr-8">
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-blue-600 to-indigo-600 text-sm font-semibold text-white">Acme</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-indigo-600 to-violet-600 text-sm font-semibold text-white">Globex</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-teal-700 to-sky-700 text-sm font-semibold text-white">Initech</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-rose-600 to-orange-500 text-sm font-semibold text-white">Umbrella</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-emerald-600 to-teal-600 text-sm font-semibold text-white">Hooli</span></li>
</ul>
<ul class="flex shrink-0 items-center gap-8 pr-8" aria-hidden="true">
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-blue-600 to-indigo-600 text-sm font-semibold text-white">Acme</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-indigo-600 to-violet-600 text-sm font-semibold text-white">Globex</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-teal-700 to-sky-700 text-sm font-semibold text-white">Initech</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-rose-600 to-orange-500 text-sm font-semibold text-white">Umbrella</span></li>
<li><span class="grid h-12 w-24 place-items-center rounded-lg bg-gradient-to-br from-emerald-600 to-teal-600 text-sm font-semibold text-white">Hooli</span></li>
</ul>
</div>
</section>| Prop | 型 | デフォルト | 説明 |
|---|---|---|---|
items必須 | Logo[] | - | レンダリングする項目の配列。 |
className | string | - | ルート要素にマージされる追加クラス。 |
ariaLabel | string | 'Trusted by' | ボタンのアクセシブルな名前。アイコンのみのボタンでは必須です。 |
The list is rendered twice and the track slides -50% for a seamless loop, with keyframes injected inline so the component is self-contained. It pauses on hover and stops entirely under `prefers-reduced-motion`; the wrapper scrolls, so the logos stay reachable when the motion is off.