I've been trying to create a border animation that would look like in the attached image. So basically, the bright blue line will rotate around the box. The line should also be 3px whereas the actual border is 1px. I tried a few solutions I found on Codepen and tried to make them work for my case. But none of the CSS solutions worked.
I also tried a few other ideas, like having 4 different absolute positioned spans and each span has a before element that would animate according to the position of the previews element. But that was just a mess (and did not work either).
It seems something like this is not possible with pure CSS? I've been trying to get this done for almost 2 days now and none of the solutions were working as hoped. Anybody done something like that before? Would I need to make this an animated SVG in order to work? Any help is much appreciated.