The code sets the interval to 10000 milliseconds while the animated demo shows the speed updates much faster.