I’m trying to grey the border elements smoothly with css smoothing and it does nothing and the elements are 1 pixel thick
code:
function greyBorder()
{
var elms
elms = Array.from(document.getQuerySelectorAll(".border"))
for (var i = 0; elms[i]; i++)
{
elms[i].style.backgroundColor = "#aaaaaa"
}
}
function ungreyBorder()
{
var elms
elms = Array.from(document.getQuerySelectorAll(".border"))
for (var i = elms.length - 1; i >= 0; i--)
{
elms[i].style.backgroundColor = "#2832be"
}
}
I tried everything i knew to do
New contributor
Ashton Drye is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.