How to fade changing background image

后端 未结 8 1979
旧巷少年郎
旧巷少年郎 2020-11-27 14:48

I want to fade the images when I do this code:

$(\"#large-img\").css(\'background-image\', \'url(\'+$img+\')\');

I\'ve tried putting fade i

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 15:10

    If your trying to fade the backgound image but leave the foreground text/images you could use css to separate the background image into a new div and position it over the div containing the text/images then fade the background div.

提交回复
热议问题