DEV Community

David gimenez
David gimenez

Posted on

 

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)

50 CLI Tools You Can't Live Without

The top 50 must-have CLI tools, including some scripts to help you automate the installation and updating of these tools on various systems/distros.