scroll-and-fade-text
v1.0.4
Published
Vue3 component which repeatedly scrolls and fades text.
Downloads
24
Maintainers
Readme
scroll-and-fade-text
Vue3 component which repeatedly scrolls and fades text.
Usage
- Install the package:
npm install scroll-and-fade-text
- Import the component:
import ScrollAndFadeText from "scroll-and-fade-text"; import "scroll-and-fade-text/style.css";
- Use the component:
<ScrollAndFadeText text="a really long string that is repeatedly scrolling and fading" />
- 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:
- Clone this repo using
git clone
. - Change directory to the newly cloned repo.
- Install the required packages with
npm install
. - Build the component with
npm run build
. - Deploy with
npm run dev
. - Check out the component in the browser of your choice! 😎