0.0.2 • Published 8 months ago

@acrool/react-flip-countdown v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Acrool React Flip Countdown

NPM npm npm

npm downloads npm

Features

  • Flip animation for hours, minutes, and seconds
  • Support endTime as countdown target
  • Supports 3-digit hours: the display shows 99, and starts flipping down when the hour drops below 99
  • Lightweight and easy to use

Install

yarn add @acrool/react-flip-countdown

Usage

add in your index.tsx

import "@acrool/react-flip-countdown/dist/index.css";

then in your page

import FlipCountdown from '@acrool/react-flip-countdown';

const Example = () => {
    
    return (
        <FlipCountdown endTime="2025/05/05 18:50:53"/>
    );
};

There is also a example that you can play with it:

Play react-editext-example

Props

PropTypeDefaultRequiredDescription
endTimestringYesCountdown target time. Accepts a date string or a format supported by dayjs

License

MIT © Acrool

0.0.2

8 months ago

0.0.1

8 months ago