Minimal Canvas Clock In Vanilla JavaScript – Coolock.js

Category: Date & Time , Javascript | March 3, 2017
Author:FarahmandM
Views Total:1,428 views
Official Page:Go to website
Last Update:March 3, 2017
License:MIT

Preview:

Minimal Canvas Clock In Vanilla JavaScript – Coolock.js

Description:

A native JavaScript library used to render an Analog Clock on the webpage using HTML5 canvas.

How to use it:

Import the coolock.js script into your html page.

<script src="coolock.js"></script>

Create a container element in which you want to place the analog clock.

<div id="coolockWrapper"></div>

Create a new Coolock object and specify the height / width of the analog clock.

new Coolock(180, 180);

You Might Be Interested In:


Leave a Reply