CSS Gradient Generator
Do you need a customized tool for your website?
Contact mePresets
Gradient Editor
Gradient Type
Angle
Gradient Preview
Code Copied!
Quick Guide To CSS Gradients
What is a gradient?
Gradients are a CSS objects of type image consisting of a progressive transition between two or more colors. There are two types of gradients: linear-gradients that transition along a straight line and radial-gradients that radiate from an origin.
Using gradients you can add more colors to your website to make it more unique, friendly and welcoming.
Linear Gradients
linear-gradient() is a CSS function that creates a transition between two or more colors along a straight line.
Syntax:
-
A straight line gradient, Starting Blue and finishing Red.
Code:Code Copied!
background: linear-gradient(to right, blue, red);
-
A gradient tilted 45 degrees, Starting Cyan and finishing Yellow.
Code:Code Copied!
background: linear-gradient(45deg, cyan, yellow);
Radial Gradients
radial-gradient() is a CSS function that creates a transition between two or more colors that radiate from an origin.
Syntax:
-
A gradient at the center of its container, Starting Red and finishing Blue.
Code:Code Copied!
background: radial-gradient(circle at center, red, blue);
CSS Gradient Generator
Why is this tool useful?
This tool helps designers and developers to experiment with lots of gradient variations by changing the colors, angle, color position, etc. in a much faster and effective way.
Also, They can copy and paste the generated CSS code to their project to see the final result and make the necessary changes.
About this tool
CSS Gradient Generator is a free tool for creating background gradients and easily copy-paste the generated CSS code to your project.