I've started doing zymography. I know that during gel casting the gelatin is somehow fixed in the gel, but, why it does not move during electrophoresis, since gelatin is also a protein?
Michael Wendl already explained you the reason why the substrate (e.g. gelatin or casein) does not move during electrophoresis. Due to substrate copolymerization with acrylamide it loses electrophorectic mobility.
For further reading I am sharing a combined pdf with relevant literature.