JavaScript micro library to generate gradient color stops 🏳️🌈
Demo | UMD Bundle |
---|
npm install gradstop
import gradstop from 'gradstop';
const gradient = gradstop({
stops: 5,
inputFormat: 'hex',
colorArray: ['#343838', '#00DFFC']
});
console.log(gradient);
// rgb(52,56,56), rgb(39,97,105), rgb(26,139,154), rgb(13,181,203), rgb(0,223,252)
Both shorthand(#fff) and standard(#ffffff) format hex values are supported.