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
1background: linear-gradient(#333, #333 50%, #eee 100%);
2\\code for a basic gradient background
3 #grad {
4 background-image: linear-gradient(red, yellow);
5}
1body {
2 background: linear-gradient(#12c2e9,#c471ed,#f64f59);
3 background-repeat: no-repeat;
4 background-attachment: fixed;
5 height: 100%;
6 margin: 0;
7 padding: 2rem;
8}