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

Marquee

marquee

Scrolls repeated content continuously in a configurable direction with pause controls.

Usage

Basic usage

The children scroll to the left in a seamless loop, and pauseOnHover pauses when hovering.

ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
tsx
<Marquee pauseOnHover>
  {items.map((c) => (
    <Chip key={c}>{c}</Chip>
  ))}
</Marquee>

Icon wall (fade fades out)

fade Add mask to fade out at both ends, and add icon sub-items to make logo / icon wall look and feel.

tsx
<Marquee fade pauseOnHover gap="1.25rem">
  {logos.map((Icon, i) => (
    <LogoTile key={i}>
      <Icon className="size-6" />
    </LogoTile>
  ))}
</Marquee>

Direction and speed

direction controls the direction, the bigger duration is, the slower it is.

ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
tsx
<Marquee direction="right" duration={30} fade>
  {items.map((c) => (
    <Chip key={c}>{c}</Chip>
  ))}
</Marquee>

Vertical scrolling (vertical)

vertical rolls along the Y axis, and the height of the container needs to be fixed.

ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
tsx
<Marquee className="h-56" vertical fade pauseOnHover>
  {items.map((c) => (
    <Chip key={c}>{c}</Chip>
  ))}
</Marquee>

When to use

Use Marquee to continuously loop logos, technology chips, or testimonials horizontally or vertically. Use AnimatedList for viewport-triggered entrances, or Sortable for user-controlled order.

Import

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

Props

Inherits ComponentPropsWithoutRef<"div">.

NameTypeDefaultDescription
direction"left"|"right""left"Scroll direction; right reverses the animation.
durationnumber40Seconds per cycle; larger is slower.
gapstring"1rem"CSS gap between items.
pauseOnHoverbooleanfalsePauses while hovered.
repeatnumber4Copies of the content used to prevent gaps.
verticalbooleanfalseUses vertical movement; left means up and right means down.
fadebooleanfalseAdds edge fade masks.
fadeWidthstring"15%"Fade-region CSS width.
...divComponentPropsWithoutRef\<"div"\>-Forwarded props; className controls the viewport.

Slots

SlotTypeDescription
children *ReactNodeRepeated scrolling content.
Showcase controls use duration 20 and enable pause and fade for demonstration. The actual defaults are those listed above.

Usage notes

  • Give horizontal marquees a width and vertical marquees a height to create a visible viewport.
  • Increase repeat when short content exposes a gap.
  • This is a CSS-only animation; fadeWidth applies only when fade is true.

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

Playground

ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
ReactVueSvelteSolidAngularQwik
<Marquee direction="left" duration={20} pauseOnHover={true} fade={true}>
  {items}
</Marquee>
PreviousAnimatedListData DisplayNextSortable

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Usage notes
    • Related
  • Playground