A clock that displays the time using falling Tetris pieces. Watch the tetrominoes fall into place to form the current time.
Live demo: tetris-time.koenvangilst.nl
By default, the clock displays the current time. No parameters needed.
Use the to parameter to count down to a specific date:
- New Year: ?to=newyear
- Specific date (UTC): ?to=2026-12-31T23:59:00Z
- With timezone offset: ?to=2026-07-04T12:00:00-04:00
Use the speed parameter to control animation speed (default: 3, higher = faster):
- Slow: ?speed=1
- Fast: ?speed=10
- Combined: ?to=newyear&speed=10
To run locally:
npm install
npm run devThen open the link provided in your terminal.
Color palette from the Mindful Palette by Alex Cristache.
MIT