Getting Started
Installation
Package Manager
Package manager like pnpm, yarn, npm, etc.
bash
pnpm i flipclock
bash
yarn add flipclock
bash
npm i flipclock
bash
bun i flipclock
CDN
html
<script src="https://cdn.jsdelivr.net/npm/flipclock@^1/dist/FlipClock.umd.js"></script>
html
<script src="https://unpkg.com/flipclock@^1/dist/FlipClock.umd.js"></script>
Basic Example
ts
import { clock, css, flipClock, theme } from 'flipclock';
const parent = document.querySelector('#clock')!;
flipClock({
parent,
face: clock(),
theme: theme({
dividers: ':',
css: css({
fontSize: '3rem'
})
})
});