원형 선이 목표 비율까지 채워지고 끝점이나 숫자가 같이 움직인다.A circular stroke fills to a target ratio with a synchronized label.
75% 완료율까지 원과 숫자를 동시에 채운다.
75% 숫자와 완전히 닫힌 원을 함께 표시한다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 1000ms | 600~1500ms | 비율과 숫자 동기화 |
| 목표 비율 | 75% | 0~100% | 실제 완료율 사용 |
| 시작 각도 | -90deg | -90~0deg | 12시 방향 권장 |
| 반지름 | 120px | 80~180px | 1920x1080 기준 |
const tl=gsap.timeline({paused:true}),s={p:0},C=2*Math.PI*120;
gsap.set(ring,{strokeDasharray:C,strokeDashoffset:C,rotation:-90,transformOrigin:'50% 50%'});
tl.to(s,{p:0.75,duration:1,ease:'power2.out',onUpdate:()=>{
ring.style.strokeDashoffset=C*(1-s.p);
label.textContent=Math.round(s.p*100)+'%';
}});그대로 붙여 넣는다Paste as is
<파일>의 <대상>에 원형 진행 게이지을 적용해. SVG 원 둘레의 dashoffset을 비율로 계산하고 숫자와 같은 진행값을 쓴다. 지속 1000ms; 목표 비율 75%; 시작 각도 -90deg; 반지름 120px을 적용한다. GSAP 코어의 paused 타임라인 하나로 seek 가능하게 만들고 임의 난수와 타이머를 쓰지 마.
Implement Progress Ring on <target> in <file>. Fill the ring to 75% over 1000ms with a 120px radius and a minus 90 degree starting angle. Derive both dash offset and percentage label from the same ratio. Use one paused GSAP core timeline, support seeking, and avoid random values and timers.
<파일>의 설명 장면에서 <대상>에 원형 진행 게이지을 적용해. SVG 원 둘레의 dashoffset을 비율로 계산하고 숫자와 같은 진행값을 쓴다. 지속 1000ms; 목표 비율 75%; 시작 각도 -90deg; 반지름 120px을 적용한다. 0초, 0.5초, 1초를 캡처해 시작 상태, 중간 진행, 최종 상태를 확인하고 같은 시각으로 다시 seek했을 때 좌표와 라벨이 같은지 검증해.
Implement Progress Ring on <target> in <file>. Fill the ring to 75% over 1000ms with a 120px radius and a minus 90 degree starting angle. Derive both dash offset and percentage label from the same ratio. Use one paused GSAP core timeline, support seeking, and avoid random values and timers. Capture at 0s, 0.5s, and 1s to check the initial state, intermediate motion, and final state. Seek to each time again and verify identical geometry and labels.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo
gongnyang/reelforge:skills/reelforge/references/grammar/06-shapes-strokes.md#progress-ring-radial)Apache-2.0gongnyang/reelforge:skills/reelforge/references/gallery/gallery-index.json)Apache-2.0gongnyang/reelforge:skills/reelforge/references/gallery/fragments/data/progress-ring.html)Apache-2.0gongnyang/reelforge:skills/reelforge/references/gallery/fragments/data/progress-ring.meta.json)Apache-2.0claude-skill:hyperframes-animation/rules/stat-bars-and-fills.md)unknown