Fading in background image with jQuery

前端 未结 2 548
臣服心动
臣服心动 2021-01-29 03:56

How would you fade in a background image (the body tag, and it is tiled) with jQuery? The background color is white and in a callback function I want to toggle the background im

相关标签:
2条回答
  • 2021-01-29 04:24

    Unfortunately you can't really fade in a tiled background image. Since the image is part of the CSS rendering system it doesn't have a node in the DOM.

    You can do some fancy stuff by using a frame type animation by moving the position of the background image but this wouldn't work with:

    A. a whole body background
    B. a tiled image.
    
    0 讨论(0)
  • 2021-01-29 04:32

    Using jQuery for Background Image Animations

    0 讨论(0)
提交回复
热议问题