2.0.0 • Published 5 years ago

custom-clock v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

<custom-clock> Web Component

Simple clock component built with SVG & CSS Animations

clock

Browser support

Tested in Chrome 70, Firefox 64, Safari 12.0. You should use Array.prototype.flatMap polyfill for older browsers.

Usage

import { CustomClockComponent } from 'custom-clock'
customElements.define('custom-clock', CustomClockComponent)
<custom-clock dial-size="100px" stroke-color="#536dfe"></custom-clock>

You can use existing JavaScript & TypeScript definitions via special import:

import 'custom-clock/dist/src/global-declarations'

Please see the discussion about predefined names.

Attributes

  • dial-size (CSS value for clock width & height)
  • stroke-color (CSS value)
2.0.0

5 years ago

1.2.1

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.8

5 years ago