you could use a gradient with stop-opacity to do this.
you would add two "middle" stops with opacity 0 and 1 respectively an set the offset of both to the percentage you need.
you could even animate it
the advantage is that this works on any shape and size without changing the gradient