Scrolling logo cloud
A slow, endless marquee of customer logos with faded edges that pauses on hover.
Svelte 5 · Version 1.0.0 · Zero extra packages
Live preview
Trusted by fast-growing teams
Design decision
Motion lets a long customer list fit in one line. Reduced-motion users see a static, wrapped list instead. Original Svelte 5 implementation. No code was copied from the inspiring component.
Inspired by Logo Cloud by @shadcnui-blocks on 21st.dev ↗
Source and integration
Pass logos with name and a 24 x 24 SVG path. Set the label and the loop duration in seconds. Only show customers you have permission to name.
You may copy and adapt this original SaaSCrisp implementation in personal and commercial websites.
LogoCloud.svelte
<script lang="ts">
type Logo = { name: string; mark: string };
let { logos, label = 'Trusted by fast-growing teams', duration = 30 }: { logos: Logo[]; label?: string; duration?: number } =
$props();
</script>
{#snippet row(hidden: boolean)}
<ul class="lc-row" aria-hidden={hidden || undefined}>
{#each logos as logo (logo.name)}
<li>
<svg viewBox="0 0 24 24" aria-hidden="true"><path d={logo.mark} /></svg>
<span>{logo.name}</span>
</li>
{/each}
</ul>
{/snippet}
<section class="lc" aria-label={label}>
<p>{label}</p>
<div class="lc-viewport">
<div class="lc-track" style:--duration="{duration}s">
{@render row(false)}
{@render row(true)}
</div>
</div>
</section>
<style>
.lc {
--_text: var(--ui-text, #0f172a);
--_muted: var(--ui-muted, #64748b);
display: grid;
gap: 22px;
font-family: var(--ui-font, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
}
p {
margin: 0;
color: var(--_muted);
font-size: 14px;
text-align: center;
}
.lc-viewport {
overflow: hidden;
mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.lc-track {
display: flex;
width: max-content;
animation: lc-scroll var(--duration) linear infinite;
}
.lc-viewport:hover .lc-track {
animation-play-state: paused;
}
.lc-row {
display: flex;
gap: 56px;
margin: 0;
padding: 0 28px;
list-style: none;
}
li {
display: flex;
align-items: center;
gap: 9px;
color: var(--_muted);
font-size: 19px;
font-weight: 600;
letter-spacing: -0.03em;
white-space: nowrap;
opacity: 0.75;
transition:
opacity 0.2s,
color 0.2s;
}
li:hover {
color: var(--_text);
opacity: 1;
}
li svg {
width: 22px;
height: 22px;
fill: currentColor;
}
@keyframes lc-scroll {
to {
translate: -50% 0;
}
}
@media (prefers-reduced-motion: reduce) {
.lc-track {
flex-wrap: wrap;
justify-content: center;
width: auto;
animation: none;
}
.lc-row[aria-hidden='true'] {
display: none;
}
.lc-row {
flex-wrap: wrap;
justify-content: center;
row-gap: 20px;
}
.lc-viewport {
mask-image: none;
}
}
</style>
Agent prompt
Use the SaaSCrisp UI Library MCP at https://www.saascrisp.com/api/library/mcp. Retrieve logo-cloud version 1.0.0 for svelte with get_ui_asset. Preview: https://www.saascrisp.com/library/logo-cloud. Confirm the project's stack, reuse local primitives and map CSS variables to existing design tokens. Integrate the files and run the project's checks. Report changed files and additional dependencies.