[英]I had Four divs contains 2 images in each div. I want to alter those Images withing each div, BUT NOT AT ONCE
Each div contains Two images. 每个div包含两个图像。 How it works explained below...
运作方式说明如下...
-div1:ImagesA.1 fade out , ImageB.1 fadeIn.
-Time Interval of 2secs.
-div2: ImageA.2 fadeOut, ImageB.2 FadeIn.
-Time Interval of 2 secs.
-div3: ImageA.3 fadeOut, ImageB.3 FadeIn.
-Time interval of 2 secs.
-div4: ImageA.4 fadeout. ImageB.4 FadeIn.
again..
-div1:ImageA.1 fadeout and ....
cycle countinous forever.
As per my understanding you are trying to fadeIn
and fadeOut
2 images within a div at a regular time interval. 根据我的理解,您正在尝试按
fadeIn
时间间隔在div中fadeIn
和fadeOut
2张图像。
For regular time interval, you can use Javascript's setInterval
对于常规时间间隔,可以使用Javascript的
setInterval
I have created a JSFiddle for a single div
using JQuery , hope this gives you an idea. 我已经使用JQuery为单个
div
创建了一个JSFiddle,希望这能给您一个想法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.