Useful number scrolling plugin

Add-ons
2026-07-25 22:58 3 次浏览 • 0 次下载 2.3KB
Useful number scrolling plugin

The following shows how to call the API.

1
2
3
4
5
6
7
8
var odo1 = new Odometer('.Odometer',{
len : null, // Set the default number of digits
num : "", // Initial value
speed : 1000, // Animation speed
symbol : '', // Separator
dot : 0 // Number of decimal places to retain
});
odo1.update(123) // Update the number

The following is the basic CSS.

1
2
3
4
.number-animate{line-height:45px; height: 45px;font-size: 40px;overflow: hidden; display: inline-block; position: relative; }
.number-animate .number-animate-dot{ width: 21px; float: left; text-align: center;}
.number-animate .number-animate-dom{ width: 27px; text-align: center; float: left; position: relative; top: 0;}
.number-animate .number-animate-dom span,.number-animate .number-animate-dot span{float: left;width: 100%;height: 45px;line-height: 1;}
星河码客

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

关于本站

联系我们

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

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

Powered by Nuxt · Deployed on Cloudflare