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
Post a Comment