Create a rectangular Band sprite with origin image point set on the left (at x=0).
On every tick set Band width to distance(self.x, self.y, mouse.x, mouse.y)
and set angle towards (mouse.x, mouse.y)
You can also decrease band height as it "stretches", for example:
Band set height to lerp(20, 10, self.width/500)