크기가 달랐던 누적 막대가 같은 전체 길이가 되고 내부 조각의 비율이 유지된다.Stacks with different totals become equal-length bars while preserving their internal proportions.
각 조각을 집단 합계로 나눠 0.9초에 900px 전체 폭으로 정규화한다.
합계가 0인 집단을 100%로 늘려 자료가 있는 것처럼 표시한다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 전환 시간 | 900ms | 650~1300ms | 폭과 시작점을 함께 보간한다. |
| 목표 합계 | 100% | 100% 고정 | 집단별 합계로 나눈다. |
| 축 전환 | 600ms | 400~800ms | 절대값 축을 비율 축으로 바꾼다. |
| 목표 폭 | 900px | 700~1200px | 모든 집단의 전체 폭을 맞춘다. |
| 이징 | power2.inOut | none | power2.out | power2.inOut | 끝점을 넘지 않는 이징을 쓴다. |
const tl=gsap.timeline({paused:true});
document.querySelectorAll('.segment').forEach(el=>{
const d=el.dataset,total=+d.total;
if(total>0)tl.to(el,{attr:{x:200+900*(+d.cumulative)/total,width:900*(+d.value)/total},duration:0.9,ease:'power2.inOut'},0);
});
tl.to('.absolute-axis',{opacity:0,duration:0.6},0);
tl.fromTo('.percent-axis',{opacity:0},{opacity:1,duration:0.6},0.3);그대로 붙여 넣는다Paste as is
<파일>의 <대상>에 백분율 정규화 전환를 구현해. 크기가 달랐던 누적 막대가 같은 전체 길이가 되고 내부 조각의 비율이 유지된다. 전환 시간 900ms, 목표 합계 100%, 축 전환 600ms, 목표 폭 900px, 이징 power2.inOut를 적용하고 GSAP 코어의 paused 타임라인 하나로 seek 가능하게 작성해. 합계 0인 집단은 비율 미정으로 구분한다.
Implement Percent Normalization for <target> in <file>. Stacks with different totals become equal-length bars while preserving their internal proportions. Use transition duration: 900ms; target total: 100%; axis transition duration: 600ms; target width: 900px; easing: power2.inOut in a single paused GSAP core timeline that supports seeking. Treat zero-total groups as undefined proportions.
<파일>의 <대상> 장면에 백분율 정규화 전환를 적용해. 전환 시간 900ms, 목표 합계 100%, 축 전환 600ms, 목표 폭 900px, 이징 power2.inOut를 사용하고 다음 동작을 구현해: 항목별 합계로 나눈 길이와 공통 기준선 좌표를 보간한다. 플러그인과 Math.random 없이 작성하고 0.23초·0.54초·0.9초를 캡처해 초기 상태, 중간 변화, 최종 상태가 연속적이며 다음 예시와 맞는지 확인해: 각 조각을 집단 합계로 나눠 0.9초에 900px 전체 폭으로 정규화한다.
Apply Percent Normalization to the <target> scene in <file> using transition duration: 900ms; target total: 100%; axis transition duration: 600ms; target width: 900px; easing: power2.inOut. Stacks with different totals become equal-length bars while preserving their internal proportions. Use prepared data or geometry with GSAP core, no plugins, and no Math.random; capture at 0.23, 0.54, 0.9 seconds to verify continuous intermediate geometry, correct endpoints, and identical output after repeated seeks. Treat zero-total groups as undefined proportions.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo