javascript - jquery animate background-size onload -


i'm working on wordpress site (it's in "coming soon" mode can't give link) client wants background image zoom slightly. figured achieve css animation, manipulating background-size. worked great!... except in safari , ie.

why not use image , set z-index , use scale(), ask? well, want background on 1 post. , means 'post', not 'page', otherwise i'd set new page template , done. forced me specify background image on individual post body class (body.postid-23.custom-background {...}).

so need way animate background-size, without hovering or clicking, page loads. before? appreciated. i'm not javascript/jquery coder, can use them enough make work sites.

this want:

$(function() {     $("yourselector").animate({         backgroundsize: "100px 100px"     }); }); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -