1.0.4 • Published 1 year ago
scroll-and-fade-text v1.0.4
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:
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! 😎