简单的 JQuery 淡入淡出股票
我查看了多个股票行情,它们的权重都远远不够。我正在寻找一个非常简单的 fadeIn() fadeOut() JQuery 滚动条,用于显示标题的元素列表。
<li>Story 1</li>
<li>Story 2</li>
<li>Story 3</li>
<li>Story 4</li>
<li>Story 5</li>
我查看了下一个功能,但我不知道如何让它显示我想要的元素。所以我追求的是非常简单的东西。它所需要的只是循环中淡出和淡入的间隔。
I've looked at multiple tickers and they are all far to weighted. I'm after a very simple fadeIn() fadeOut() JQuery ticker for a list of elements to display titles.
<li>Story 1</li>
<li>Story 2</li>
<li>Story 3</li>
<li>Story 4</li>
<li>Story 5</li>
I looked at the next function but I don't know how to make it show the elements I want. So I'm after something very simple. All it needs is an interval a fade out and a fade in on a loop.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我做了一个非常简单的推子,重量很轻。将其用于图像,但将其更改为 div:
Script
HTML
CSS
I did a very simple fader, very light weight. used it for images but changed it for divs:
Script
HTML
CSS
尝试 jquery Cycle 插件;我用它来创建一组简单的旋转文本链接,有一个“lite-min”版本,如果您只想要基本的功能和效果,它可以保持良好和精简。
Try the jquery Cycle plugin; I've used it for creating a simple set of rotating text links, there's a "lite-min" version which keeps it nice and lean if you only want basic functionality and effects.
未经测试。这只是在当前元素完成后在下一个元素上重新安排链接在一起的淡出/淡入。
用作:
Untested. This simply reschedules the fade out/in, which are chained together, on the next element after the current one completes.
Used as:
jQuery WebTicker 也是一个非常好的旋转替代方案文本链接;同时让您完全控制旋转方向和速度;它还允许使用 CSS 灵活地设置颜色和大小。自动收报机允许不间断旋转,一旦您到达最后一个项目,第一个项目将立即开始。
The jQuery WebTicker is also a very good alternative for rotating text links; whilst giving you complete control of the direction of rotation and the speed; it also allows flexibility of colours and size using CSS. The ticker allows non-stopping rotation and once you reach the last item the first one will start straight away.