Trying for a while to make this work. This is the current state:
First I was able to generate random lines that stretch from side to side, either horizontal or vertical.
Then I implemented some simple movement and animation.
Now I just finished to implement other set of lines that do not stretch from side to side.
Next step will be to add some randomization to the generation of the complementary set of lines, and then the colorful rectangles.
UPDATE (February 10th 2016): I found to my surprise that Codepen included this simple article in the "Picked posts" section after the new re-design, which gave more than 11k views to the pen (which I still don't consider it is finished). I updated it again to show that the shorter lines have been implemented and I started to add the coloured rectangles, which is one of the main distinctions of Mondrian paintings.