A Cool Clock With Pure JavaScript and HTML5 | Coolock

Coolock is a cool clock with pure JavaScript that is used to display an analog clock on a web page using an HTML5 panel.

javascript analog clock, javascript analog clock code free download, javascript clock code, digital clock using html code

Responsive Analog Clock Ui Design Using HTML CSS & JavaScript

How to make use of it:

1. Import the coolock.js script into your HTML page.

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

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

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

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

new Coolock(180, 180);
PropertyTypeDescriptionDefault Value
sizeNumberThe size of canvas.400
strokeColorStringThe html color of strokes like red and #f00.#000
fillColorStringThe filling color like blue and #00f#fff
lineCapStringThe type of line cap could be buttround or square.round
canvasIdStringThe id of canvas.coolock
canvasWrapperIdStringThe id of html element that Coolock canvas should be rendered there.coolockWrapper

Minimal Canvas Clock, Coolock Plugin/Github


See Demo And Download

Official Website(FarahmandM): Click Here

This superior jQuery/javascript plugin is developed by FarahmandM. For extra advanced usage, please go to the official website.

Related Posts

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

Your email address will not be published. Required fields are marked *