증감 막대가 앞선 누적 끝점에서 차례로 생겨 합계 막대에 도달한다.Change bars appear from the preceding cumulative endpoint until a total bar is reached.
증감값의 누적 시작점을 계산하고 막대마다 0.45초 공개한 뒤 연결선을 0.18초 그린다.
음수 막대를 기준선에서 늘려 앞선 합계에서 빠지는 양이 보이지 않는다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 막대 공개 | 450ms | 300~700ms | 누적 시작점에서 성장한다. |
| 막대 사이 휴지 | 120ms | 80~220ms | 이전 막대 도착 뒤 기다린다. |
| 연결선 | 180ms | 120~300ms | 앞선 누적 끝점을 연결한다. |
| 막대 간격 | 48px | 32~72px | 라벨과 연결선 공간을 남긴다. |
| 이징 | power2.out | none | power2.out | power2.inOut | 끝점을 넘지 않는 이징을 쓴다. |
const tl=gsap.timeline({paused:true});
document.querySelectorAll('.waterfall-bar').forEach((el,i)=>{
const d=el.dataset,t=i*0.75;
tl.fromTo(el,{attr:{y:+d.startY,height:0}},{attr:{y:+d.finalY,height:+d.finalHeight},duration:0.45,ease:'power2.out'},t);
const line=document.querySelector('.connector-'+i);
if(line){const n=line.getTotalLength();tl.fromTo(line,{strokeDasharray:n,strokeDashoffset:n},{strokeDashoffset:0,duration:0.18,ease:'none'},t+0.45);}
});그대로 붙여 넣는다Paste as is
<파일>의 <대상>에 워터폴 순차 누적를 구현해. 증감 막대가 앞선 누적 끝점에서 차례로 생겨 합계 막대에 도달한다. 막대 공개 450ms, 막대 사이 휴지 120ms, 연결선 180ms, 막대 간격 48px, 이징 power2.out를 적용하고 GSAP 코어의 paused 타임라인 하나로 seek 가능하게 작성해. 소계 막대를 다음 누적에 다시 더하지 않는다.
Implement Waterfall Accumulation for <target> in <file>. Change bars appear from the preceding cumulative endpoint until a total bar is reached. Use bar reveal duration: 450ms; pause between bars: 120ms; connector duration: 180ms; bar spacing: 48px; easing: power2.out in a single paused GSAP core timeline that supports seeking. Do not count subtotal bars again in the accumulation.
<파일>의 <대상> 장면에 워터폴 순차 누적를 적용해. 막대 공개 450ms, 막대 사이 휴지 120ms, 연결선 180ms, 막대 간격 48px, 이징 power2.out를 사용하고 다음 동작을 구현해: 누적 기준값을 계산하고 각 SVG 막대와 연결선을 순차 공개한다. 플러그인과 Math.random 없이 작성하고 0.75초·1.8초·3초를 캡처해 초기 상태, 중간 변화, 최종 상태가 연속적이며 다음 예시와 맞는지 확인해: 증감값의 누적 시작점을 계산하고 막대마다 0.45초 공개한 뒤 연결선을 0.18초 그린다.
Apply Waterfall Accumulation to the <target> scene in <file> using bar reveal duration: 450ms; pause between bars: 120ms; connector duration: 180ms; bar spacing: 48px; easing: power2.out. Change bars appear from the preceding cumulative endpoint until a total bar is reached. Use prepared data or geometry with GSAP core, no plugins, and no Math.random; capture at 0.75, 1.8, 3 seconds to verify continuous intermediate geometry, correct endpoints, and identical output after repeated seeks. Do not count subtotal bars again in the accumulation.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo