react-flip-clock-en
v1.0.6
Published
react flip clock english version
Downloads
37
Maintainers
Readme
react flip clock timer (English)
Based on the chinese version: http://xiaxiangfeng.github.io/flip-clock/index.html https://www.npmjs.com/package/react-flip-clock https://github.com/xiaxiangfeng/react-flip-clock
Installation
npm i react-flip-clock-en
Examples
Using webpack
import Clock from "react-flip-clock-en";
const Index = () => {
return (
<div>
<Clock />
</div>
);
};
render(<Index />, document.getElementById("app"));
Custom Styles
You can override this
/*Width and Height*/
.flip-clock-wrapper ul {
width: 60px;
height: 90px;
}
/*Background colours*/
.flip-clock-wrapper .inn {
background-color: #502d2d;
font-size: 70px;
}
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test