Skip to content

Marquee

The marquee component is used to create a looping scrolling text or content display effect.

Basic Usage

Pass the content to be scrolled through the default slot.

Vertical Scrolling

Setting the vertical attribute can achieve vertical scrolling.

Properties

PropertyDescriptionTypeDefault
durationTime required for one scroll (seconds)number20
reverseWhether to scroll in reversebooleanfalse
gapSpacing between scrolling contentstring'8px'
heightComponent heightstring'100%'
verticalWhether to scroll verticallybooleanfalse