bubbly-bg.js----a beautiful bubbles background---clock desktop demo



Bubbly-bg.js is a beautiful bubbly backgrounds in less than 1kB (696 bytes gzipped),which is based on HTML5 canvas.

GitHub here


Step1:
HTML

This is the clock parts.
html
Do some stylish on clock to make it center.
head



Step2:

JS

It's easy to apply the bubbly-bg.js function with bubbly();
js


There are several attributes:
coloreStart: the beginning of the color transit
colorStop:the end of the color transit(I think it's like gradient())
bubbleFunc: the function of bubbles moving
bubbles: the numbers of bubbles showing
blur: the ambiguity of bubbles .The bigger the number is, the more blur the bubbles are.
compose: the style of bubbles. multiply bubbles. Default is  compose: "light".The other is compose: "source-over"
shadowColor:the shadow color of bubbles



The javascrip color js below. More detail expain check here

js for clock




Popular posts from this blog

Fancyapps — easily build overlay windows with carousel

Meet Mantine: A TS-Based Open-Source React Components Library

Meet Tippy.js: The Complete Tooltip Popover Plugin