coderitual/bounty
coderitual/bounty has 823 GitHub stars and 50 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-21 16:09 UTC. Last push 2026-01-24.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Javascript and SVG odometer effect library with motion blur
창작 및 미디어README.md
Original
SVG library for transitioning numbers with motion blur
JavaScript odometer or slot machine effect library for smoothly transitioning numbers with motion blur. Library uses functional approach and ES7 Function Bind Syntax. Internally based on SVG.

See the live version.
Installation
To install the stable version:
npm install --save bounty
Examples
The API is really simple and straigthforward:
import bounty from `bounty`;
bounty({ el: '.js-bounty', value: '£42,000,000' });
You can use it with other options:
import bounty from `bounty`;
bounty({
el: '.js-bounty',
value: '£42,000,000',
initialValue: '£900,000',
lineHeight: 1.35,
letterSpacing: 1,
animationDelay: 100,
letterAnimationDelay: 100,
duration: 3000
});
If you want to control ongoing animation just use methods from returned object:
import bounty from `bounty`;
const { cancel, pause, resume } = bounty({ el: '.js-bounty', value: '£42,000,000' });
const wait = (delay) => new Promise((resolve) => setTimeout(resolve, delay));
const pasueAndRun = async () => {
await wait(1500);
pause();
await wait(2000);
resume();
await wait(2000);
cancel();
};
pasueAndRun();
Library is built using UMD thus the following usage in HTML is possible.
<div class="js-bounty"></div>
<script src="/bounty.js"></script>
<script>
bounty.default({ el: ".js-bounty", value: "£42,000,000" });
</script>
The UMD build is also available on unpkg:
<script src="https://unpkg.com/[email protected]/lib/bounty.js"></script>
You can find the library on window.bounty.
That's it?
Yea! That's it. Other options like font-family and font-size are taken from computed styles so you can just style it like the other layers.
.js-bounty {
font-size: 60px;
font-family: Roboto;
fill: #fff;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}
How?
If you're interested how it's made, see the presentation.
Roadmap
There is a work in progress to implement additional features:
-
fromtoAPI. - Full ASCII transition support.
- Control animation.
- Introduce Webcomponents API
<svg-bounty>

License
The library is available under the MIT license. For more info, see the LICENSE file.
관련 프로젝트 살펴보기
불러오는 중…