겹친 도형이 하나로 붙거나 교차 부분이 뚫리며 하나의 실루엣을 만드는 결합Overlapping shapes join, or their intersection is cut out, forming a single silhouette.
두 원이 40px 겹치는 위치까지 800ms에 다가온 뒤 합쳐 한 실루엣이 되고, 교차 영역이 강조색으로 남는다
겹침이 없어 결합이 일어나지 않거나, 색이 같아 교차 영역이 구분되지 않는다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 이동 시간 | 0.8s | 0.5~1.2s | 접근 |
| 겹침 | 0→40px | 0~반지름의 1/2 | 교차 폭 |
| 연산 | 합집합 | 합/차/교/배타 | 선택 |
| 교차 색 | #ffcc33 | 보조색 | 강조 |
| 이징 | power2.inOut | power1~power3 |
// SVG mask로 합성: 교집합 = A를 B로 마스크
tl.to('.a', { x: 20, duration: 0.8, ease: 'power2.inOut' }, 0.3)
.to('.b', { x: -20, duration: 0.8, ease: 'power2.inOut' }, 0.3)
.to('.inter', { opacity: 1, duration: 0.3 }, 1.0);
// .inter: <circle class=a> 을 <mask id=mb>(원 b)로 마스크한 교차 영역그대로 붙여 넣는다Paste as is
GSAP과 SVG mask로 <두 원>의 합집합과 교집합을 보여 줘. 0.3초부터 0.8초 동안 두 원이 서로 20px씩 다가와 40px 겹치게 하고(power2.inOut), 1.0초에 교차 영역을 mask로 만든 노랑 #ffcc33으로 0.3초 페이드 인해. 교차 영역이 다른 색으로 구분되고 paused 타임라인으로 작성해.
Use GSAP and an SVG mask to show the union and intersection of <two circles>. From 0.3 seconds over 0.8 seconds move each circle 20px toward the other with power2.inOut so they overlap by 40px, and at 1.0 seconds fade in the intersection region, made with a mask, in yellow #ffcc33 over 0.3 seconds. The intersection must read as a distinct color. Paused timeline.
<파일>에 boolean-path-merge를 적용해. .a x 20, .b x -20을 position 0.3, duration 0.8, ease power2.inOut으로 옮기고 .inter(마스크로 만든 교차 영역) opacity 0→1을 position 1.0, duration 0.3으로 건다. 0.3초는 겹침 없음, 1.1초는 교차 영역 등장, 1.8초는 40px 겹침과 교차 영역이 노랑으로 구분되는지 캡처로 확인해.
Apply boolean-path-merge in <file>. Move .a x 20 and .b x -20 at position 0.3, duration 0.8, ease power2.inOut, and tween .inter (mask-built intersection) opacity 0 to 1 at position 1.0, duration 0.3. Capture 0.3s (no overlap), 1.1s (intersection appearing) and 1.8s (40px overlap with the intersection clearly yellow).
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo