Skip to content
Svelte FAST Marquee
GitHub

Usage

To use the component, first import it into your file:

import Marquee from "svelte-fast-marquee";

Then wrap the <Marquee> tags around any component or text you’d like to slide.

<Marquee>
  I can be a Svelte component, multiple Svelte components, or just some text.
</Marquee>

A sample file might look like this:

<script>
    import MyComponent from '../components/MyComponent';
    import Marquee from 'svelte-fast-marquee';
</script>

<Marquee>
    <MyComponent />
    <MyComponent />
    <MyComponent />
</Marquee>