Skip to content

MazTicker ​

MazTicker is a scrolling ticker component that continuously animates content in a loop with configurable speed, direction, pause controls, and gradient overlays

Before use it, you should install the MazUi plugin in your project, follow instructions in Getting Started

Basic usage ​

Vue 3Nuxt 3TypeScriptTailwindCSSMaz UI

A vertical ticker with images, similar to a screenshot showcase. Uses orientation="vertical" with pause-on-hover for user-friendly browsing.

Screenshot 1Screenshot 2Screenshot 3Screenshot 4
Screenshot 5Screenshot 6Screenshot 7Screenshot 8
Screenshot 9Screenshot 10Screenshot 11Screenshot 12

3D Screenshots showcase ​

Create an eye-catching 3D perspective effect with tilted vertical tickers, inspired by the Nuxt UI Marquee screenshots demo.

Screenshot 1Screenshot 2Screenshot 3Screenshot 4
Screenshot 5Screenshot 6Screenshot 7Screenshot 8
Screenshot 9Screenshot 10Screenshot 11Screenshot 12

Orientation ​

Horizontal (default) ​

By default, the ticker will scroll horizontally.

Item 1Item 2Item 3

Vertical ​

Otherwise, the ticker will scroll vertically.

Item 1
Item 2
Item 3

Reverse direction ​

Normal direction
Reverse direction

Speed control ​

Control the animation speed with the duration prop (in seconds). Lower values = faster.

Fast (5s)
Normal (20s)
Slow (40s)

Repeat ​

The repeat prop controls how many times the content is duplicated to create a seamless loop. The default value is 4. Increase it when your content is short to avoid visible gaps during the animation.

Repeat 2
Repeat 10

Custom gap ​

Small gap
Large gap

Overlay ​

Without overlay ​

You can disable the overlay by setting the overlay prop to false.

No gradient overlay

Custom overlay size ​

You can change the size of the overlay by setting the overlay-size prop to a CSS value.

Small overlay (10%)
Large overlay (50%)

Pause controls ​

Pause on hover ​

When a child element is hovered, the animation will pause.

Hover me to pause

Pause on focus ​

When a child element is focused, the animation will pause.

Programmatic pause ​

You can control the animation programmatically with the paused prop.

Controlled by button

Custom content ​

MazTicker accepts any HTML content, not just text.

Vue 3Nuxt 3TypeScriptTailwindCSSMaz UI

Slots ​

Before and after ​

Replace the default before and after slots with custom content.

Latest:
Breaking news item
End

Timing function ​

Linear (default)
Ease in out

Props ​

NameDescriptionTypeRequiredDefaultPossible values
orientationScrolling directionMazTickerOrientationNohorizontal'horizontal' | 'vertical'
reverseReverse the scrolling directionbooleanNofalse-
durationDuration of one full animation cycle in secondsnumberNo20-
gapGap between repeated content blocks (CSS value)TSLiteralType | TSLiteralType | TSLiteralType | TSLiteralType | TSLiteralType | TSLiteralTypeNo1rem-
repeatNumber of times the content is duplicated for seamless loopingnumberNo4-
pause-on-hoverPause animation on mouse hoverbooleanNofalse-
pause-on-focusPause animation when a child element receives focusbooleanNofalse-
pausedProgrammatic pause control - takes precedence over pauseOnHover and pauseOnFocusbooleanNofalse-
overlayShow gradient overlays on edges to fade content in/outbooleanNotrue-
overlay-sizeSize of the gradient overlay zones (CSS value)stringNo33%-
animation-timing-functionCSS animation timing functionstringNolinear-

Slots ​

NameDescriptionBindings
beforeStatic content before the scrolling area
overlay-startCustom overlay for the start edge (left in horizontal, top in vertical). Replaces default gradient.
defaultContent to scroll (repeated for seamless animation)
overlay-endCustom overlay for the end edge (right in horizontal, bottom in vertical). Replaces default gradient.
afterStatic content after the scrolling area