简体   繁体   English

JQ动画进度栏

[英]JQ Animated Progress Bar

I need to create an animated progress bar on page load, here is an example as to what I require: http://somnia-themes.com/templates/verendus/shortcodes/progressbar.html 我需要在页面加载时创建一个动画进度条,这是我所需要的示例: http : //somnia-themes.com/templates/verendus/shortcodes/progressbar.html

I need the same amount of bars to show as in the example above, but they need to animate with a striped image, I can use CSS, but I need to ensure it works in all browsers hence the use of a sliced striped image. 我需要显示与上面示例中相同数量的条,但是它们需要为带状图像制作动画,我可以使用CSS,但是我需要确保它在所有浏览器中都有效,因此要使用切片的带状图像。

Would be grateful for any assistance. 感谢您的协助。

Alternatively, there is an animated progress bar in Twitter Bootstrap I can use (My site is built with Bootstrap framework) but the bar does not load same as the url above. 另外,我可以使用Twitter Bootstrap中的动画进度栏(我的网站是用Bootstrap框架构建的),但是该进度栏的加载方式与上面的URL相同。 Is there a way to add this loading feature to Bootstrap? 有没有办法将此加载功能添加到Bootstrap?

Thanks in advance. 提前致谢。 Sanj 桑杰

JS Fiddle Striped Progress Example JS小提琴条纹进度示例

This is using the .progress-striped class on the progress bar. 这是使用进度条上的.progress-striped类。

<div class="progress progress-striped"> 
<div class="bar" style="float: left; width: 0%; " data-percentage="50"></div>
</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM