how to apply linear gradient to background image code example
Example 1: background with image and gradient
body {
background: #eb01a5;
background-image: url("IMAGE_URL");
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
}
Example 2: linear-gradient(top to bottom)
.class {
background: linear-gradient(to bottom, #f32b60, #ff8f1f);
}
Example 3: linear gradient css background image
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
Example 4: background-image linear-gradient url
body {
background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), linear-gradient(red, yellow);
background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), -webkit-gradient(linear, left top, left bottom, from(red), to(yellow));
background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), -moz-linear-gradient(top, red, yellow);
}
Example 5: how to find the gradient linear of image
GradientFinder {
fromUrl: function(url, onload),
fromCanvas: function(canvas)
};