Poner un gradient a un texto
CSS
Publicado el 15 de Febrero del 2020 por Katas (47 códigos)
1.122 visualizaciones desde el 15 de Febrero del 2020
Ejemplo de poner un "gradient" a un texto.



















<!DOCTYPE html>
<html lang="es">
<head>
<style>
p { font:2em Arial; }.gradient-text {
background: linear-gradient(red, white);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}</style>
</head>
<body>
<p class='gradient-text'>Este texto tiene un "gradient"</p>
</body>
</html>
Comentarios sobre la versión: 1 (0)
No hay comentarios