开发者

jQuery gallery - load image and then animate

开发者 https://www.devze.com 2023-01-28 01:43 出处:网络
is there any possibility how to load an image with jQuery in background and than animate the transition? I have a gallery of big fullscreen images as a background for my website. I have paths of all i

is there any possibility how to load an image with jQuery in background and than animate the transition? I have a gallery of big fullscreen images as a background for my website. I have paths of all images in some hidden elements, at first I make the background div bi开发者_StackOverflow中文版t transparent, than I change the background-image property with jQuery and at last I make it again visible..But there is a bit long time before the image is loaded. I dont want to show any loader or something else..I only want to load the image in background and than male the transition..Is it possible? Thanks


did you try jquery image load

http://api.jquery.com/load-event/
0

精彩评论

暂无评论...
验证码 换一张
取 消