Tank SVG Customization

Using InkSpace, I managed to get a SVG for vertical tank. Now I want to use the highlighted rectangle to show the tank fill level. Can I bind the property of Tank level to show the % fill? Thank you for your help

Use a clip path:

style.clipPath: inset(0 20% 0 0)

You'll need to experiment (or looks up docs) to find which of the four to change, but it will clip the % from the edge, so youll need to invert the % to show your tank level (eg for 80% level the inset value should be 20%)