Skip to content

A small JS script for creating colorful flowing animations without WebGL.

Notifications You must be signed in to change notification settings

albiDmtr/lavalamp.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

lavalamp.js

A small JS script for creating colorful flowing animations without WebGL.

Demo:

Usage:

To give the lavalamp background to an element, give it the HTML attribute data-lavalamp-color and set its value to the preferred HEX code like so:

<div data-lavalamp-color="#ff0000">

The default is that the background color of the element is left untouched. If you'd like to add a solid background, set the HTML attribute data-lavalamp-bg to true:

<div data-lavalamp-color="#ff0000" data-lavalamp-bg="true">

About

A small JS script for creating colorful flowing animations without WebGL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published