Changing the page background through Wix Code

I’ve gone through the tutorials and I’ve gone through the API and I can’t for the life of me figure out how to change the page background on hover. My background id is page, but in the OnHover function it is telling me that neither .src nor .background are available options. I don’t really know Javascript at all, though I’m reasonable at C#. I’ve looked for tutorials on YouTube and Google and can’t find anything. I’m basically trying to recreate this effect ( Any ideas?

As far as i’m aware you can not change the background with wix code. You can however place an image or colored shape layered on top of your background and change that with code

I did eventually find a way after trawling through many forum posts:


…seemed to do the trick.