Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 设置列表项的循环动画_Jquery_List_Jquery Animate_Ticker - Fatal编程技术网

Jquery 设置列表项的循环动画

Jquery 设置列表项的循环动画,jquery,list,jquery-animate,ticker,Jquery,List,Jquery Animate,Ticker,我有一个包含在中的单词列表,溢出设置为隐藏,因此一次只显示一个列表项。我希望每个列表项一个接一个地向上滑动,但不使用该函数。我希望它看起来像一个从顶部移动,另一个从底部出现。我还希望列表项循环出现 这是我的HTML: <div class="band_ticker"> <ul id="slide"> <li><h2 class="band">BAND</h2></li>

我有一个包含在中的单词列表,溢出设置为隐藏,因此一次只显示一个列表项。我希望每个列表项一个接一个地向上滑动,但不使用该函数。我希望它看起来像一个从顶部移动,另一个从底部出现。我还希望列表项循环出现

这是我的HTML:

<div class="band_ticker">
        <ul id="slide">
            <li><h2 class="band">BAND</h2></li>
            <li><h2 class="band">PARTY BAND</h2></li>
            <li><h2 class="band">COPORATE EVENTS</h2></li>
            <li><h2 class="band">WEDDINGS</h2></li>
            <li><h2 class="band">FUNCTION BAND</h2></li>
            </ul>
    </div>

我可以通过向上设置每个项目的动画来编写jQuery代码以循环这些项目吗?

下面是一些源于workshop.rs的代码:

JS:

HTML:


下面是一些源于workshop.rs的代码:

JS:

HTML:


在stack overflow,我们不为您编写代码。我们将帮助你找到一些插件,所以可以开始了。在您编写了一些代码并遇到问题之后,我们会在这些细节方面提供帮助。这个问题太模糊了,要求我们为您编写代码。我有一些额外的功能,我想滚动点击功能的顶部和底部相同的问题。有任何方法。如果您能提供JSFIDLE示例,应该会更有帮助。我们将帮助你找到一些插件,所以可以开始了。在您编写了一些代码并遇到问题之后,我们会在这些细节方面提供帮助。这个问题太模糊了,要求我们为您编写代码。我有一些额外的功能,我想滚动点击功能的顶部和底部相同的问题。有任何方法。如果您能提供JSFIDLE示例,应该会更有帮助。这正是我想要的。谢谢你的帮助,我有一些额外的功能,我想滚动点击功能的顶部和底部相同的问题有任何办法。如果您能提供JSFIDLE示例,应该会更有帮助。@Anup,您最好问一个新问题,而不是评论一个旧问题。回到这个问题,帮助那些回答问题的人知道你来自哪里。粘贴一些代码真的会有帮助。我从链接的标题假设它实际上是4行,以防链接不再有效。@upclix你的链接已经死了。这正是我想要的。谢谢你的帮助,我有一些额外的功能,我想滚动点击功能的顶部和底部相同的问题有任何办法。如果您能提供JSFIDLE示例,应该会更有帮助。@Anup,您最好问一个新问题,而不是评论一个旧问题。返回到这个问题,以帮助那些将要回答的人知道你来自哪里。如果链接不再有效,粘贴一些代码将非常有帮助。我假设从链接标题中粘贴的代码实际上是4行。@upclix您的链接已失效。
function tick(){
    $('#ticker li:first').animate({'opacity':0}, 200, function () {
    $(this).appendTo($('#ticker')).css('opacity', 1); });
}
setInterval(function(){ tick () }, 4000);
<ul id="ticker">
    <li>
        <a href="http://workshop.rs/2009/12/jqbargraph-jquery-graph-plugin/">jqBarGraph</a> is jQuery plugin that gives you freedom to easily display your data as graphs. There are three types of graphs: simple, multi and stacked.
    </li>
    <li>
        Learn how to create <a href="http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/">image gallery in 4 lines of Jquery</a>
    </li>
    <li>
        <a href="http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects">jqFancyTransitions</a> is easy-to-use jQuery plugin for displaying your photos as slideshow with fancy transition effects.
    </li>
    <li>
        <a href="http://workshop.rs/2010/02/moobargraph-ajax-graph-for-mootools/">mooBarGraph</a> is AJAX graph plugin for MooTools which support two types of graphs, simple bar and stacked bar graph.
    </li>
</ul>