Is it possible to make a responsive border for elements in a webpage [closed]

Ok first of all this feature is just like in windows 10 settings buttons
Where the borders are initially hidden then when the mouse is close the borders appear only around the mouse
Is it possible to make the exact same in a webpage .
Thanks.