A
A
alaskafx2021-06-26 23:29:54
css
alaskafx, 2021-06-26 23:29:54

How to make a filling "speedometer"?

There is html: There is css:
<div class="circle"></div>

.circle{
    width: 300px;
    height: 176px;
    background-color: none;
    border-top-left-radius: 160px;
    border-top-right-radius: 160px;
    border: 10px solid white;
    border-bottom: 0;
    position: absolute;
    z-index: -1;           
}

How can I make it "fill" with green (i.e. its border)?

Codepen: https://codepen.io/akaskafx/pen/bGWbrGG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2021-06-27
@alaskafx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question