A simple React project using FlipClock.js to display a real-time countdown to New Year 2026. The design is customized with CSS for a clean, modern, and minimalistic black-and-white look.
- Flip-style countdown timer (days, hours, minutes, seconds).
- Styled panels, digits, and labels for a custom theme.
- Fullscreen layout with centered clock.
- Responsive design with bold typography.
- React (functional components, hooks)
- FlipClock.js (for countdown timer)
- CSS (custom styling for flip panels, labels, and digits)
-
Clone the repository:
git clone https://github.com/lilianacodes/react-flipclock-countdown.git cd flipclock-countdown -
Install dependencies:
npm install react react-dom npm install jquery npm install flipclock
-
Add FlipClock.js dependency (via CDN in
public/index.htmlor npm):<!-- Add to public/index.html --> <script src="https://cdnjs.cloudflare.com/ajax/libs/FlipClock/0.7.8/flipclock.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/FlipClock/0.7.8/flipclock.min.css" />
-
Run the development server:
npm start
You can easily update the:
-
Target date β in
/src/App.jsconst targetDate = new Date("2025-12-31T23:59:59");
-
Colors, fonts, styles β in
/src/index.css