중심 위치가 고정된 원이나 도형의 면적이 데이터 값에 비례해 커지거나 작아진다.Shapes change area in proportion to their data values.
인구 4배인 지역의 원 반지름을 2배로 표시한다.
값이 4배라고 반지름도 4배로 늘린다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 750ms | 400~1200ms | 중심 고정 |
| 최소 반지름 | 2px | 0~4px | 0값은 숨김 처리 |
| 최대 반지름 | 80px | 40~120px | 면적을 값에 비례시킨다 |
const tl=gsap.timeline({paused:true});
bubbles.forEach(b=>{
const r=b.value===0?0:Math.max(2,80*Math.sqrt(b.value/maxValue));
tl.fromTo(b.element,{attr:{r:0}},{attr:{r},duration:0.75,ease:'power2.out'},0);
});그대로 붙여 넣는다Paste as is
<파일>의 <대상>에 데이터 면적 변화을 적용해. SVG 도형의 중심을 유지한 채 표시 면적을 보간하고 원 반지름은 제곱근으로 환산한다. 지속 750ms; 최소 반지름 2px; 최대 반지름 80px을 적용한다. GSAP 코어의 paused 타임라인 하나로 seek 가능하게 만들고 임의 난수와 타이머를 쓰지 마.
Implement Animated Size Encoding on <target> in <file>. Animate area over 750ms with a maximum radius of 80px and a minimum visible radius of 2px. Use the square root of normalized value for radius; hide zero values and keep centers fixed. Use one paused GSAP core timeline, support seeking, and avoid random values and timers.
<파일>의 설명 장면에서 <대상>에 데이터 면적 변화을 적용해. SVG 도형의 중심을 유지한 채 표시 면적을 보간하고 원 반지름은 제곱근으로 환산한다. 지속 750ms; 최소 반지름 2px; 최대 반지름 80px을 적용한다. 0초, 0.375초, 0.75초를 캡처해 시작 상태, 중간 진행, 최종 상태를 확인하고 같은 시각으로 다시 seek했을 때 좌표와 라벨이 같은지 검증해.
Implement Animated Size Encoding on <target> in <file>. Animate area over 750ms with a maximum radius of 80px and a minimum visible radius of 2px. Use the square root of normalized value for radius; hide zero values and keep centers fixed. Use one paused GSAP core timeline, support seeking, and avoid random values and timers. Capture at 0s, 0.375s, and 0.75s 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