JavaScript color transition

By kasparsb at 2019-08-06 15:48:22 in

Demo is here

GitHub repositiory

This library uses canvas element to generate gradient from provided color stops.

You pass in transition progress value from 0 to 1 and library returns color

This method is very accurate because of generated gradient. All kind of mathematical solutions works differently

Here comes inline demo.

If you want to know why this library is neede, than click here (link to progress slider demo)