1.0.2 • Published 5 years ago

@fuzzco/vue-marquee v1.0.2

Weekly downloads
188
License
MIT
Repository
-
Last release
5 years ago

VueMarquee gives you a reliable, accessible, bare-bones marquee in Vue. You provide the content and the styling, this component provides the rest. Demo

Usage

npm i @fuzzco/vue-marquee

Register component in Vue, then:

<template>
    <main>
        <!-- standard options -->
        <vue-marquee>
            <p>
                <code>VueMarquee</code> gives you a reliable, accessible,
                bare-bones marquee. You provide the content and the styling,
                this component provides the rest.
            </p>
        </vue-marquee>

        <!-- custom props -->
        <vue-marquee :groups="10" :speed="150">
            <p>
                Your content will be repeated 10 times here and scroll at
                150px/second.
            </p>
        </vue-marquee>
    </main>
</template>

Options

PropTypeDefaultNotes
groupsNumber5How many times the text will be repeated. All repetitions after the first have aria-hidden set to true. Add more repetitions if your content isn't reaching the edge of the screen.
speedNumber75Target scroll speed in pixels per second.