Progress bar along the borders of a rectangle
问题 I'm trying to figure out how to implement progressbar around rectangle. Let's image that I have div 500x300 with 5px (black) border. I would like that progress bar started in left top corner then goes to -> right corner -> bottom - right corner -> left bottom corner -> and back on start point. 回答1: Pure CSS: This effect can be achieved with CSS using multiple linear gradients as background and positioning them appropriately. The approach is as follows: Create 4 thin linear-gradient