점선의 간격과 위상이 바뀌어 윤곽을 따라 흐른다.Dashes travel along an outline as their phase advances.
데이터 경로의 점선 위상이 14px 이동해 흐름 방향을 알린다.
양방향 연결에 한쪽으로 흐르는 점선을 써 의미가 바뀐다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 주기 | 1.2s | 0.8~2s | 1920x1080 기준. 왕복 또는 위상 계산을 절대 시간에 맞춘다. |
| 대시 길이 | 8px | 4~12px | 1920x1080 기준. 왕복 또는 위상 계산을 절대 시간에 맞춘다. |
| 간격 | 6px | 4~10px | 1920x1080 기준. 왕복 또는 위상 계산을 절대 시간에 맞춘다. |
| 선 두께 | 2px | 1~3px | 1920x1080 기준. 왕복 또는 위상 계산을 절대 시간에 맞춘다. |
const tl = gsap.timeline({ paused: true });
gsap.set('.ants', { strokeDasharray: '8 6', strokeWidth: 2 });
tl.fromTo('.ants', { strokeDashoffset: 0 },
{ strokeDashoffset: -14, duration: 1.2, ease: 'none' });그대로 붙여 넣는다Paste as is
<대상>에 행진 점선을 구현해. 주기 1.2s, 대시 길이 8px, 간격 6px, 선 두께 2px, 이징 none을 적용해. SVG stroke-dasharray와 stroke-dashoffset을 갱신한다. paused 타임라인과 절대 시간으로 구동하고 Math.random 없이 같은 시점의 상태를 재현해.
Implement Marching Ants on <target>. Use period 1.2s; dash length 8px; gap 6px; stroke width 2px; use none easing. Drive the effect with a paused GSAP timeline and absolute time, and reproduce the same state on every seek without Math.random. Keep foreground text readable.
<파일>의 행진 점선 장면 레이어에 적용해. 주기 1.2s, 대시 길이 8px, 간격 6px, 선 두께 2px, 이징 none을 사용하고 본문과 분리해. 0초, 0.4초, 1.2초 시점을 캡처해 시작 상태와 중간 변화 및 대상 가독성을 확인하고 같은 시점을 다시 seek해 결과가 같은지 검증해.
Apply Marching Ants to the scene layer in <file>. Use period 1.2s; dash length 8px; gap 6px; stroke width 2px and none easing. Capture at 0, 0.4, and 1.2 seconds to check the initial state, motion progression, and foreground readability; seek to each time again to verify identical output.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo