how to calculate border values based on height and width in css for loaders
https://codepen.io/Vicky-clowdy/pen/GRVeYqy
In this code i set 50px for height and width and set 8px for border
So currently I create basic loaders for my project in react as re usable so I can reuse
Currently I use this formula like
const loader size = size * 0.16
Here size will be same for both height and width , For eg if I set size as 50 , width will 50px and height will be 50px
So what I need is , is there any better formula ?
2 Replies