开发者

Jquery content fade help!

开发者 https://www.devze.com 2023-02-17 20:17 出处:网络
I have a news ticket fader in my home page. My html is like this: <div id=\"news-conteiner\"> <div id=\"fader-cont-0\">

I have a news ticket fader in my home page. My html is like this:

<div id="news-conteiner">
  <div id="fader-cont-0">
   <div class="short-news">some txt</div>
   <div class="short-news">some txt</div>
   <div class="short-news">some txt</div>
  </div>
  <div id="fader-cont-1">
   <div class="short-news">some txt</div>
   <div class="short-news">some txt</div>
   <div class="short-news">some txt</div>
  </div>
</div开发者_开发百科>

I need show first 3 #fader-cont-0 > .short-news, after 3 sec fadeOut one by one, then when the first 3 are hidden, fadeIn the #fader-cont-1 > .short-news one by one etc... Someone know a plugin or the easy way for do it???


A combination of fadeToggle() and delay() should do this for you.

Have you got any code already?

0

精彩评论

暂无评论...
验证码 换一张
取 消