I'm very new to jquery and trying to remove the background of an element. I know this can simply be done with javascript but I want it to fade out which is why I've resulted to jquery.
What I've got so far is:
fadeTo(2000, function(){
document.html.style.background="black";
})
The html tag is simply:
<html style="background: url(back.png);background-size: cover;">
I suspect I'm not using the "fadeTo" function properly but after looking around it's what was proposed in a website. The jquery website also started the parameters of the "fadeTo" function to be (delay,function)