전체 선 중 짧고 밝은 구간만 경로를 따라 지나가는 강조Only a short bright stretch travels along the full line.
회색 선 위에서 전체 길이의 15%인 밝은 조각이 0.9초 동안 처음부터 끝까지 지나간다
밝은 구간이 너무 길어 선 전체가 켜진 것처럼 보이거나, 방향과 반대로 흐른다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 길이 | 0.9s | 0.6~1.5s | 한 번 통과 시간 |
| 구간 비율 | 15% | 10~25% | 전체 길이 대비 |
| 선 두께 | 5px | 3~8px | 1920x1080 기준 |
| 이징 | none | none | 일정 속도 |
gsap.set('.flow', { strokeDasharray: '0.15 0.85', strokeDashoffset: 0.15 });
tl.to('.flow', { strokeDashoffset: -1, duration: 0.9, ease: 'none' }, 0.4);그대로 붙여 넣는다Paste as is
GSAP으로 <대상> 선을 따라 흐르는 밝은 구간을 넣어줘. path에 pathLength=1을 주고 strokeDasharray '0.15 0.85', 선 두께 5px, 밝은색으로 두고 0.4초부터 0.9초 동안 strokeDashoffset을 0.15에서 -1로 linear 이동시켜. 기저 선은 어두운 회색으로 그대로 둬. paused 타임라인으로 만들어.
Add a bright travelling segment along the <target> line with GSAP. Set pathLength=1, strokeDasharray '0.15 0.85', stroke width 5px, a bright color, and from 0.4s over 0.9s animate strokeDashoffset from 0.15 to -1 linearly. Keep the base line dark gray. Paused timeline.
<파일>의 <대상>에 path-highlight를 적용해. .flow에 pathLength=1, dasharray '0.15 0.85', dashoffset 0.15→-1, 0.9s, ease none, position 0.4. 0.4초·0.85초·1.3초를 캡처해 밝은 조각이 경로 시작, 중간, 끝에 있는지 확인해.
Apply path-highlight to <target> in <file>. On .flow set pathLength=1, dasharray '0.15 0.85', dashoffset 0.15 to -1, 0.9s, ease none, position 0.4. Capture at 0.4s, 0.85s and 1.3s to check the bright piece is at the start, the middle and the end.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo