Gathering detailed insights and metrics for @hardiknaik/react-onboarding-swiper
Gathering detailed insights and metrics for @hardiknaik/react-onboarding-swiper
Gathering detailed insights and metrics for @hardiknaik/react-onboarding-swiper
Gathering detailed insights and metrics for @hardiknaik/react-onboarding-swiper
npm install @hardiknaik/react-onboarding-swiper
Typescript
Module System
Node Version
NPM Version
65.2
Supply Chain
98.1
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (69.54%)
CSS (20.78%)
JavaScript (9.68%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Sep 21, 2023
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
@hardiknaik/react-onboarding-swiper@1.0.2
Unpacked Size
19.98 kB
Size
5.28 kB
File Count
6
NPM Version
9.5.1
Node Version
18.16.0
Published on
Sep 21, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
26
number animation
1npm i @hardiknaik/react-animate-number
1import React from "react"; 2import AnimatedNumbers from "@hardiknaik/react-animate-number"; 3 4const App = () => { 5 return ( 6 <AnimatedNumbers 7 number={444} // specify the number 8 className="text-yellow" // specify the Class name (Optional) 9 style={{ background: "red" }} // specify the Style (Optional) 10 decimal={2} // specify the Decimal Places default to 0 (Optional) 11 /> 12 ); 13}; 14 15export default App;
1import React, { Component } from "react"; 2import AnimatedNumbers from "@hardiknaik/react-animate-number"; 3 4class Example extends Component { 5 render() { 6 return ( 7 <AnimatedNumbers 8 number={444} // specify the number 9 className="text-yellow" // specify the Class name (Optional) 10 style={{ background: "red" }} // specify the Style (Optional) 11 decimal={2} // specify the Decimal Places default to 0 (Optional) 12 /> 13 ); 14 } 15}
Change the below css variale to modify the colour and animation speed
1:root { 2 /* Change the Animation Speed in ms or s */ 3 --duration: 500ms; 4 /* Change the colour of the number when number will be incrementing */ 5 --increment: #00b200; 6 /* Change the colour of the number when number will be decrementing */ 7 --decerement: red; 8}
Available options with example values:
1<AnimatedNumbers 2 number={444} 3 className="text-yellow" 4 style={{ background: "red" }} 5 decimal={2} 6/>
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
number | Number | yes | - | Provide the number you want to animate. |
className | String | no | - | Provide the Class Name. |
style | CSS Object | no | - | Provide the Style. |
decimal | Number | no | 0 | Provide the Decimal places you want to show to the number. |
MIT © Hardik Naik
No vulnerabilities found.
No security vulnerabilities found.