/gradient-generator

using DOM manipulation and DOM EventListener to build color picker and generate free gradient

Primary LanguageCSS

Check out!

https://winatungmiharja.github.io/gradient-generator/

Code Snippet

Just A simple project. I just added some Java Script to make input responsive and change the background

# gradient
function setGradient(){
	body.style.background = 
	"linear-gradient(to right, " 
	+ color1.value 
	+ ", " 
	+ color2.value 
	+ " )";
	print();
}
# random picker
Math.floor(Math.random()*16777215).toString(16);