🚀 Wavescrollbar React 🌐 is a javascript library, which adds modern progress bar at the top.
🌐 Description
Wavescrollbar is a library to create a modern, efficient and scalable scroll bar. It uses modern JavaScript, is built with TypeScript (retains compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming).
Under the hood, Wavescrollbar uses javascript, but also provides compatibility with a wide range of other libraries, such as p. Eg ReactJs, Vuejs, Angular, which allows easy use of the countless third-party add-ons that are available.
📝 Philosophy
Wavescrollbar aims to provide a ready-to-use application architecture that allows effortless creation of applications with progress bar at the top, and highly verifiable, scalable, poorly coupled and easy to maintain.
📦 Installation
To start using Wavescrollbar you need to install it with the package manager npm or yarn, as shown in the next section or download it directly!
// To install using npmnpm install wavescrollbar -S// Para instalar mediante yarnyarn add wavescrollbar
▶️ Getting started
HTML
Wavescrollbar
Add the javascript and css file to make it work properly!
<!-- Import the CSS file --><!-- Import the javascript file -->
📝 Features
N° | Method | Parameter |
---|---|---|
1 | setAnimation | None |
2 | setContainerBackground | color |
3 | setGradient | options |
4 | setBackground | color |
5 | setTransition | options |
6 | setHeight | value |
📚 Method setAnimation
Example:
// We instantiate the animation methodwavescrollbar //It does not need parameters.
📚 Method setContainerBackground
Example:
/*** @param color* *///// Default-> #eeeeeeconst color = "#eafbea"wavescrollbar
📚 Method setGradient
Example:
/** * @param options: object * */ const options = // default-> 90deg angle: "45deg" // 0deg - 360deg // Default-> ["#11998e", "#38ef7d"] colors: "#11998e" "#38ef7d" "red" "blue" wavescrollbar
📚 Method setBackground
Example:
/** * @param color * */// Default-> pinkconst color = "red"wavescrollbar
📚 Method setTransition
Example:
/** * @param options * */ const options = // Default-> .2s duration: "100ms" // Default-> 0s delay: '0s' // Default-> linear timing: "ease-in-out" // "linear" | "ease" | "ease-in" | "ease-in-out" | "ease-out"wavescrollbar
📚 Method setHeight
Example:
/** * @param value * */// Default-> 5pxconst height = "10px"wavescrollbar
⭐ Support for
Wavescrollbar is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.
🎩 Contributors
🎩 Stay in touch
- Author Yoni Calsin
- Twitter Yoni Calsin
📜 License
Wavescrollbar is MIT licensed.