jQuery Change Image src with Fade Effect

后端 未结 4 452
旧时难觅i
旧时难觅i 2020-12-04 22:04

I\'m trying to create an effect where you click on a thumbnail image, and the link to the thumbnail will replace the main image, but fade it in. This is the code I\'m curren

4条回答
  •  没有蜡笔的小新
    2020-12-04 22:35

    You cannot fade-in something that is already at 100% alpha :)

    In other words, you either fade it out or hide it, and then fade it in.

    I made this example, basically, I hide it and then fade it:

    http://jsfiddle.net/uGFMt/

提交回复
热议问题