Skip to content

Flat-L is a Chrome animation module that uses the canvas element. It allows you to imitate an EKG graph for whatever purpose you deem necessary. It has three functions: start, stop and flatline.

License

Notifications You must be signed in to change notification settings

terrance00/flat-l

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flat-l Description:

This module has tested support for chrome only, you are welcome to fork and test compatibilty for other browsers. The reason only Chrome is tested is because I wrote it for a chromium module.

The following can be achieved:

  • Responsive flatline animation
  • Multiple boxes can be targeted at unknown performance cost
  • Custom colors

Usage:

The following block is defined by:

<div id="test1" style="width:100%;height:50px;display:block">

</div>

With the following code you make it start, stop completely or flatline. Note that container, beatColor and flatColor are required

flatL.start({ container: document.getElementById("test1"), beatColor: "#F49AC0", flatColor: "#000000" });

flatL.stop();

flatL.flatLine(document.getElementById("test1"));

About

Flat-L is a Chrome animation module that uses the canvas element. It allows you to imitate an EKG graph for whatever purpose you deem necessary. It has three functions: start, stop and flatline.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published