Word carousel rotator
Word carousel rotator preview
Primitive

Word carousel rotator

@opus-motion-library/word-carousel-rotator

From Opus Motion Library

A fixed sentence with one swapping word — "We build [fast | safe | beautiful | scalable] apps": the word rolls like a slot machine (or blurs, flips, slides) inside an accent pill whose width glides to each new word while the rest re-centres; stacks into three lines on narrow frames.

Install

node cli/mgl.mjs add word-carousel-rotator --to <your-project>/src

When to use

Good for
Website hero taglines, value-prop rotators, "for designers / developers / teams" audience swaps, intro slides, social hooks; set prefix, words[] and suffix.

Specs

Length
220f · 7.3s
Length type
Fixed
FPS
30
Style
3d, ui
License
MIT

Props (19)

  • prefixstring= "We build"

    static text before the swapping word ("" for none)

  • wordsarray= ["fast","secure","beautiful","scalable"]

    the words that rotate, in order

  • suffixstring= "apps"

    static text after the swapping word ("" for none)

  • layoutstring= "auto"

    auto (inline if it fits, otherwise stacked) | inline | stacked

  • transitionstring= "roll"

    roll | blur | flip | slide — how one word replaces another

  • pillboolean= true

    put the word on an accent pill (false = accent-coloured text)

  • anchorstring= "center"

    center (sentence re-centres as the word width changes) | prefix (prefix stays put)

  • loopboolean= true

    wrap back to the first word after the last (false = hold the last word)

  • startAtnumber= 14

    frame the first word rolls in

  • intervalnumber= 50

    frames each word stays (min transitionFrames + 4)

  • transitionFramesnumber= 14

    frames each swap takes

  • fontstring= "sans"

    font role

  • sizenumber= 150

    max font size in u; shrinks to fit the frame

  • weightnumber= 800

    font weight

  • trackingnumber= -0.01

    letter spacing in em

  • backgroundstring= "#F5F1E8"

    background colour; "transparent" for an overlay

  • inkstring= "#16130F"

    colour of the fixed text

  • accentstring= "#FF5A36"

    pill / word colour

  • pillInkstring= "#FFFFFF"

    word colour when on the pill

Categories