I need to create an oval shape with a strip inside to represent the level of liquid volume.
Here is my initial attempt:
<style scoped>
.strip:before {
position: absolute;
background: #343434;
border-bottom: 2px solid black;
content: "";
position: absolute;
z-index: -1;
top: 0;
right: 0;
bottom: 15%;
left: 0;
}
.oval div {
position: absolute;
background: #343434;
background-repeat: repeat;
border-width: thin 10px;
transition: all;
-moz-border-radius: 0 50% / 0 100%;
-webkit-border-radius: 0 50% / 0 100%;
border-radius: 150px;
height: 100px;
width: 80%;
}
</style>
The current output looks like this: https://i.sstatic.net/kif6d.png
My goal is for the green section to represent the liquid level by changing dynamically based on the liquid volume.
The value at the bottom should also be constantly updating.
--EDIT I'm attempting it this way:
<div class="oval" >
<div class="strip" v-bind:style="{ background: props.item.color}"></div>
</div>