1/* A gradient tilted 100 degrees,
2 starting gray and finishing black */
3
4.class {
5 background: linear-gradient(100deg, rgba(63, 63, 63, 0.8) 0%, rgba(255, 255, 255, 0) 25%);
6}
7
8/* A gradient going from the bottom to top
9 starting red and finishing orange */
10
11.class {
12 background: linear-gradient(to top, #f32b60, #ff8f1f);
13}
14
1#show_bg_2 {
2
3background-image:
4 /*two color gradient over an image*/
5linear-gradient(to bottom, rgba(245, 246, 252, 0.52),
6rgba(117, 19, 93, 0.73)),url('images/background.jpg');
7
8width: 80%;
9height: 400px;
10background-size: cover;
11}
1#gradient {
2 background-image: linear-gradient(180deg, black, red);
3}
4/* can be applied in many places, as your <body> background or a <div> etc */