DEV Community

David gimenez
David gimenez

Posted on

2

ANIMACIÓN CON JQUERY UTILIZANDO SETINTERVAL Y LAS ETIQUETAS HTML5 POLYLINE ellipse y text svg

Ejecutar una accion cada x segundos
La función setInterval nos permitirá realizar una acción cada x milisegundos, tiene dos parámetros la función que le pasamos y el tiempo en milisegundos que retrasa su ejecución. En el siguiente ejemplo se modificara el color del texto de nuestra imagen svg cada x segundos. Como setInternal ejecuta nuestra función hasta que finalice he creado un array con los colores que le pasamos a la función y luego la he llamado dentro de otro setInternal. Es como un bucle anidado.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay