Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

LogoLoop

logo-loop

Scrolls a seamless loop of logos with configurable direction and hover pause.

Usage

Basic usage

Pass in the logos list (mixed arrangement of icons or pictures), and the sequence is automatically copied to achieve seamless infinite scrolling; fadeOut adds fade masks to both ends (eat surface token).

tsx
const logos = [
  { node: <Hexagon />, ariaLabel: "Hexagon" },
  { node: <Cloud />, ariaLabel: "Cloud" },
  { node: <Database />, ariaLabel: "Database" },
];

<LogoLoop logos={logos} fadeOut />

Hover to pause + zoom

direction controls direction; pauseOnHover hovers to stop scrolling, and scaleOnHover hovers to zoom in on the single logo being pointed at.

tsx
<LogoLoop
  logos={logos}
  direction="right"
  fadeOut
  pauseOnHover
  scaleOnHover
/>

Speed and spacing

speed adjusts the scroll speed (px/s, negative value reverses), gap adjusts the item spacing, logoHeight adjusts logo height.

tsx
<LogoLoop logos={logos} speed={220} gap={56} logoHeight={32} />

Vertical scroll

direction="up" / "down" changes to vertical scrolling and needs to be placed in a container with height.

tsx
<div className="h-56 overflow-hidden px-8">
  <LogoLoop logos={logos} direction="up" fadeOut />
</div>

When to use

Use LogoLoop for an infinitely scrolling row or column of partner, integration, or technology logos. Use Table or ProTable for structured data, or PricingTable for a static pricing matrix.

Import

ts
import { LogoLoop } from "@hulianui/ui"

Props

NameTypeDefaultDescription
logos *LogoItem[]-Image and node logo entries; the full sequence is duplicated for seamless motion.
speednumber120Pixels per second; negative values reverse direction.
direction"left" | "right" | "up" | "down""left"Scroll direction.
widthnumber | string"100%"Container width; numbers are pixels and strings pass through.
logoHeightnumber28Logo height in pixels.
gapnumber32Gap in pixels.
pauseOnHoverbooleanundefined (equivalent to true)Stops on hover unless hoverSpeed is also provided.
hoverSpeednumber-Target hover speed, taking precedence over pauseOnHover.
fadeOutbooleanfalseAdds token-aware fades at both ends.
fadeOutColorstringvar(--color-surface)Fade color.
scaleOnHoverbooleanfalseScales the hovered logo to 1.2.
ariaLabelstring"\u5408\u4f5c\u4f19\u4f34 logo"Accessible root label. The built-in Chinese copy means “Partner logos.”
classNamestring-Root class name.
styleCSSProperties-Root inline styles.
LogoItem is either { src, srcSet?, sizes?, width?, height?, alt?, title?, href? } or { node, ariaLabel?, title?, href? }. An entry with href is wrapped in a link.

Slots

SlotTypeDescription
renderItem(item: LogoItem, index: number) => ReactNodeReplaces default image or node rendering.

Example

tsx
const logos = [{ node: <HexagonIcon />, ariaLabel: "Hexagon" }, { node: <CloudIcon />, ariaLabel: "Cloud" }];
<LogoLoop logos={logos} fadeOut />
<LogoLoop logos={logos} direction="right" fadeOut pauseOnHover scaleOnHover />

Usage guidelines

  • Vertical directions need a parent with explicit height.
  • Image alt defaults to an empty string; add meaningful alt text when the logo conveys content.
  • hoverSpeed takes precedence when supplied with pauseOnHover.
  • Reduced-motion mode stops scrolling.
  • Linked items without an explicit item label fall back to the built-in Chinese "logo \u94fe\u63a5", meaning “logo link.”

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

Playground

<LogoLoop
  logos={logos}
  speed={120}
  direction="left"
  gap={32}
  logoHeight={28}
  fadeOut={true}
  scaleOnHover={true}
  pauseOnHover={true}
/>
PreviousIconTileData DisplayNextBounceCards

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Example
    • Usage guidelines
    • Related
  • Playground