Fade background image in and out with jQuery?

后端 未结 4 979
渐次进展
渐次进展 2020-11-27 21:52

So far, I\'ve tried a bunch of things to the effect of the following, without success:



        
4条回答
  •  情歌与酒
    2020-11-27 22:34

    I got here because I was looking for a solution to fading background images based on a is changed, the top image's style attribute is removed, the bottom image's src is changed and the top image is faded out to reveal the bottom one. (The top image finishes with a style="display:none" which needs to be removed at the beginning of the operation, otherwise it doesn't work.)

    Hope this is useful to someone else and not too irrelevant to be included here!

提交回复
热议问题