Ejemplo 1: CSS de gradiente lineal
/* A gradient tilted 100 degrees,
starting gray and finishing black */
.class {
background: linear-gradient(100deg, rgba(63, 63, 63, 0.8) 0%, rgba(255, 255, 255, 0) 25%);
}
/* A gradient going from the bottom to top
starting red and finishing orange */
.class {
background: linear-gradient(to top, #f32b60, #ff8f1f);
}
Ejemplo 2: gradiente lineal css
#grad {
background-image: linear-gradient(to right, #f1b1b1 , #82e6e8);
}
Ejemplo 3: como hacer un gradiente lineal en CSS
/* Add the class name insted of class */
.class {
background: linear-gradient(to top, #000000, #fffffff);
}
Ejemplo 4: degradado lineal en CSS
The general syntax of linear-gradient is-
background: linear-gradient(gradient direction, color1 , color2 , color3, .....);
Forexample-
background: linear-gradient(46deg,green,blue,yellow,pink);
NOTE: (common mistake) we forget to write the semi-colon (;)
Ejemplo 5: CSS de gradiente lineal
/* www.gradientmagic.com will help with producing gradients */
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)