Elastic animation

hey every one
I am intending to design a character that can some way extends their arms like a rubber or like Mr. fantastic but I don’t know how to do that especially that the extent to which the arms are extended is variable
I can make the animation but the problem I am facing is how to implement the variability issue in the game.