Looking to have the background image of my body zoom in on page load, but having some trouble. Here's what I have so far:
CSS:
body, html {
font-size: 100%;
padding: 0;
margin: 0;
background-image: url(bg.jpg);
background-size: 100%;
transition: all ease-in 5s;
}
JQuery:
$( document ).ready(function() {
$(document.body).css("background-size", "140%");
});
My goal is to adjust the background-size
property of the image upon page load, but unfortunately it's not working as expected. Any ideas on what might be causing this issue?