It looks like it might be because of the expression in your driver. By adding 1 to var your keeping the shape key on at full no matter where the leg is placed. I think if you kept the expression “var” then it would stay inactive in the rest position and gradually activate as the leg pivots up. Unless there’s something I’m missing.