A row of client names or logos that slides past without end and stops when hovered. Two rows running opposite ways make a calm logo wall.
How to use
Make two files in your project's components folder: logo-marquee.tsx and logo-marquee.module.css.
Paste the code into each one, keeping the licence note at the top of the component.
It needs nothing beyond React. Your project needs CSS Modules, which Next.js and Vite already have.
Import it where you want it, then change the words, colours and sizes to yours.
The code
import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from "react";
import styles from "./logo-marquee.module.css";
interface MarqueeProps extends ComponentPropsWithoutRef<"div"> {
/** Run the other way. */
reverse?: boolean;
/** Stop while the pointer is over it. */
pauseOnHover?: boolean;
/** Scroll up instead of sideways. */
vertical?: boolean;
/** How many copies of the content to lay end to end. */
repeat?: number;
This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from "react";
import styles from "./logo-marquee.module.css";
interface MarqueeProps extends ComponentPropsWithoutRef<"div"> {
/** Run the other way. */
reverse?: boolean;
/** Stop while the pointer is over it. */
pauseOnHover?: boolean;
/** Scroll up instead of sideways. */
vertical?: boolean;
/** How many copies of the content to lay end to end. */
repeat?: number;
This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.