How to create font with variable weight similar to this example

What would be the steps to make a variable font that displays changes in one glyph by one?


Say:
Weight 50, I modify only Glyph 1
Weight 75, I modify only Glyph 2
Weight 100, I modify only Glyph 3
etc.

similar to this:

I think that is a rather simple variable font that is controlled by JavaScript.