1.10.1 • Published 8 years ago

react-countdown-clock-fork v1.10.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

React Countdown Clock

A HTML 5 canvas countdown clock as a React component.

Demo

pughpugh.github.io/react-countdown-clock

Installation

npm install react-countdown-clock-fork

Usage

<ReactCountdownClock
  seconds={60}
  color="#000"
  alpha={0.9}
  size={300}
  onComplete={myCallback}
/>

Props

proptypedefaultdescription
secondsinteger60Seconds to countdown
colorstring#000Colour of counter
alphafloat1.0Alpha transparency of counter
sizeinteger300Width & height of canvas element
weightintegerWeight of circle, in pixels
fontSizeinteger/stringautopx size of font. auto for dynamic sizing.
fontstringArialFont of counter
timeFormatstringsecondsCounter style; seconds or hms
showMillisecondsbooleantrueShow milliseconds for last 10 seconds
onCompletefuncCallback when time completes
restartOnNewPropsbooleantrueRestart timer when new props are passed to the component

##Note

This is a temporary fork. Please refer to the original repo.