quiero preguntar algo. ¿Puedo agregar un estilo de animación en la sombra con css? La animación a lo que me refiero es que la sombra puede aparecer y desaparecer varias veces.
<!DOCTYPE html> <html> <head> <style> h1 { text-shadow: 2px 2px; } </style> </head> <body> <h1>Text-shadow effect!</h1> </body> </html>Sí tu puedes. Podrías usar @keyframes .
h1 { animation: shadow-animate 3s infinite ease; } @keyframes shadow-animate { 0% { text-shadow: 20px 20px; } 100% { text-shadow: 0px 0px } } <!DOCTYPE html> <html> <head> </head> <body> <h1>Text-shadow effect!</h1> </body> </html>