jQuery Gradient Progress Bar Plugin

Add-ons
2026-07-26 01:06 3 次浏览 • 0 次下载 2.0KB
jQuery Gradient Progress Bar Plugin

Last Updated: 2019-09-25 22:27:16

Changelog:Added a progress bar display animation with a dynamic loading effect.

1
2
3
4
5
6
7
8
9
10
11
12
$('#progress-container2').initData({
height: 6,
percent: 80,
isAuto: true // Add animation effect. Set to true to display the animation.
})
mAutoPlay($('#progress-container'), mPercent, { height: 10 }) // Dynamic loading method
/*
* @params (mAutoPlay parameter descriptions, from left to right)
* el: DOM element on which to run the automatic animation
* percent: Current progress (dynamically updated)
* m_obj: Progress bar height and background color parameters. Example: {height: 10, bgStartColor: '#feea4d', bgEndColor: '#ff3d00'}
*/

Last Updated: 2019-09-23 21:58:45

Usage

Include the progress.js and progress.css files.

Then add a div tag where the progress bar should appear and call the initData() initialization method. See the example included in the plugin:

css

1
2
3
4
5
6
7
.content{
width: 800px;
margin: 50px auto;
}
.content>div{
margin-top: 50px;
}

html

1
2
3
4
5
6
<div >
<div id="progress-container"></div>
<div id="progress-container1"></div>
<div id="progress-container2"></div>
<div id="progress-container3"></div>
</div>

js

1
2
3
4
$('#progress-container').initData({
height: 10,
percent: 50
})
星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare