how to add background gradient in css code example
Example 1: how to insert gradient in css
body{
background-image: radial-gradient(#EA52F8 5.66%, #0066FF 94.35%);
background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}
Example 2: background with image and gradient
body {
background: #eb01a5;
background-image: url("IMAGE_URL");
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
}
Example 3: css gradient
Here a codePen with cool gradient animations:
https://codepen.io/DevLorenzo/pen/ExgpvJM
Example 4: how to insert gradient in css
body{
background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}