Installations
npm install @rumess/react-flip-countdown
Developer
rumess
Developer Guide
Module System
CommonJS
Min. Node Version
>=10
Typescript Support
No
Node Version
16.15.0
NPM Version
8.5.5
Statistics
37 Stars
49 Commits
25 Forks
3 Watching
3 Branches
3 Contributors
Updated on 27 May 2024
Languages
JavaScript (72.32%)
SCSS (20.81%)
HTML (6.32%)
CSS (0.55%)
Total Downloads
Cumulative downloads
Total Downloads
203,097
Last day
19.1%
243
Compared to previous day
Last week
2.8%
1,113
Compared to previous week
Last month
-14.8%
5,042
Compared to previous month
Last year
31.5%
75,441
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
1
Dev Dependencies
36
DEPRECATED
@rumess/react-flip-countdown
The React Flip Countdown Component.
Install
Using npm:
1npm install @rumess/react-flip-countdown
Using yarn:
1yarn add @rumess/react-flip-countdown
Usage
Basic
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleBasic extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 endAt={'2022-12-12 01:26:58'} // Date/Time 10 /> 11 ); 12 } 13}
Size
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleSize extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 size='large' // Options (Default: medium): large, medium, small, extra-small. 10 endAt={'2022-12-12 01:26:58'} // Date/Time 11 /> 12 ); 13 } 14}
Theme
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleTheme extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 theme='dark' // Options (Default: dark): dark, light. 10 endAt={'2022-12-12 01:26:58'} // Date/Time 11 /> 12 ); 13 } 14}
Title Position
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleTitlePosition extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 titlePosition='top' // Options (Default: top): top, bottom. 10 endAt={'2022-12-12 01:26:58'} // Date/Time 11 /> 12 ); 13 } 14}
Change title
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleChangeTitle extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 yearTitle='Year' 10 monthTitle='Months' 11 dayTitle='Days' 12 hourTitle='Hours' 13 minuteTitle='Minutes' 14 secondTitle='Seconds' 15 endAt={'2022-12-12 01:26:58'} // Date/Time 16 /> 17 ); 18 } 19}
Hide certain sections
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleHideSection extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 hideYear 10 hideMonth 11 hideDay 12 // hideHour 13 // hideMinute 14 // hideSecond 15 endAt={'2022-12-12 01:26:58'} // Date/Time 16 /> 17 ); 18 } 19}
End as Zero
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleHideSection extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 endAtZero 10 endAt={'2022-12-12 01:26:58'} // Date/Time 11 /> 12 ); 13 } 14}
Time up event
1import React, { Component } from 'react'; 2 3import FlipCountdown from '@rumess/react-flip-countdown'; 4 5class ExampleHideSection extends Component { 6 render() { 7 return ( 8 <FlipCountdown 9 endAt={'2022-12-12 01:26:58'} // Date/Time 10 onTimeUp={() => console.log("Time's up ⏳")} 11 /> 12 ); 13 } 14}
License
MIT © rumess
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/21 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 15 are checked with a SAST tool
Score
3.5
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @rumess/react-flip-countdown
@leenguyen/react-flip-clock-countdown
A 3D animated countdown component for React.
@pqina/flip
A Beautifully Animated Flip Clock
react-countdown
A customizable countdown component for React.
react-flip-move
Effortless animation between DOM changes (eg. list reordering) using the FLIP technique.