I have a div with onClick (colorRefresh) and the script works fine but I would like to know if I could fade it in.
function colorRefresh()
{ body[0].style.backgroundImage = `linear-gradient(to right, rgb(${colorOne[0]},${colorOne[1]},${colorOne[2]}),rgb(${colorTwo[0]},${colorTwo[1]},${colorTwo[2]})).fadeIn()`;
}
I tried to use fadeIn()
but nothing happens. How do I go about doing this?