Skip to content
Effects

Marquee

A looping strip that pauses on hover.

import
import { Marquee } from '@joshicodes/cock';

Strip

SvelteKit Tailwind 4 Runes OKLCH color-mix TypeScript Vite Bun
SvelteKit Tailwind 4 Runes OKLCH color-mix TypeScript Vite Bun

Behaviour

  • Repeats the content enough times to cover the container, so the loop never shows a gap.

API

Read out of the component sources at build time, so it matches the version you installed. Every component also takes class, merged through tailwind-merge so your utility wins.

Props of Marquee

PropTypeDefault
speed

Pixels per second.

number40
direction
'left' | 'right''left'
pauseOnHover
booleantrue
gap

Space between items, any CSS length.

string'2.5rem'
fade

Fade the content out towards both edges.

booleantrue
class
string—

Snippets of Marquee

SnippetTypeDefault
children required
Snippet—

See also

cock. Yes, it stands for core component kit. We checked twice.