C
C
caof192020-04-22 18:49:04
css
caof19, 2020-04-22 18:49:04

How to make a progress bar on the border of a rectangle?

Hello, there was a need to make the progress bar on the border of the rectangle on hover. I tried progressbar js, but there is only a square, it should look like this:
5ea06764506f8778042307.png
How can this be implemented?
UPD: the button can be of different lengths and heights

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2020-04-22
@caof19

A
Arseny, 2020-04-22
Matytsyn @ArsenyMatytsyn

JS + SVG + stroke-dasharray

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question