Water level animation

Hello is anyone already did this in homeassistant dashboard
i saw this code hopefully it will help.

i have a tank with sensor and i want to do this animation in the dashboard

example:

thanks