an Elm solution for the rosettacode.org task : Animated Galton box .

The source is on github. Demo embedded below: