I use the following method changing a property after a certain amount of time:
switchColors() {
this.interval = setInterval( () => {
some code;
}, 700);
}
It works, but sometime this approach seems to be unreliable in terms of flickering, jumping etc.
Is there another, better way to achieve a similar behavior?