1.0.4 • Published 1 year ago

scroll-and-fade-text v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

scroll-and-fade-text

Vue3 component which repeatedly scrolls and fades text.

example.webm

Usage

  1. Install the package:
    npm install scroll-and-fade-text
  2. Import the component:
    import ScrollAndFadeText from "scroll-and-fade-text";
    import "scroll-and-fade-text/style.css";
  3. Use the component:
    <ScrollAndFadeText
      text="a really long string that is repeatedly scrolling and fading"
    />
  4. Configure the animation timings (optional):
    <ScrollAndFadeText
       text="a really long string that is repeatedly scrolling and fading"
       :scroll-speed-px-per-s="100"
       :visible-wait-time-ms="1000"
       :invisible-wait-time-ms="1000"
       :fade-time-ms="1000"
     />

Demo

To see the component in action without installing it, you can use this repo! Here's what you need to do: 1. Clone this repo using git clone. 1. Change directory to the newly cloned repo. 1. Install the required packages with npm install. 1. Build the component with npm run build. 1. Deploy with npm run dev. 1. Check out the component in the browser of your choice! 😎

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.1.0

1 year ago

1.0.0

1 year ago