같은 대상을 전후 상태로 겹치고 움직이는 세로 경계로 비교하는 움직임An animation that overlays before and after states of the same subject and compares them with a moving vertical divider.
939와 같은 문장을 흐린 전 상태, 선명한 후 상태로 좌표를 맞춰 비교한다
전후 대상의 크기와 위치가 달라 경계에서 연결이 끊어진다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 분할 위치 | 50%, 35%, 65%, 50% | 30~70% | 양쪽 상태를 번갈아 노출 |
| 구간 지속 | 0.6s, 0.65s, 0.65s | 0.5~0.8s | 이동을 읽을 시간 |
| 완료 시각 | 2.2s | 2~2.4s | 중앙 홀드 |
| 전 상태 흐림 | 3px | 1~5px | 예시 비교 처리 |
const tl = Motion.timeline();
const stops=[35,65,50], starts=[.3,.9,1.55], durations=[.6,.65,.65];
stops.forEach((p,i)=>{ const vars={duration:durations[i],ease:'power2.inOut'};
tl.to('.before',{clipPath:`inset(0% ${100-p}% 0% 0%)`,...vars},starts[i]);
tl.to('.after',{clipPath:`inset(0% 0% 0% ${p}%)`,...vars},starts[i]);
tl.to('.divider',{x:1168*(p/100-.5),...vars},starts[i]);
});그대로 붙여 넣는다Paste as is
<대상>의 전후 레이어를 동일 좌표로 겹치고 왼쪽은 blur 3px과 opacity 0.55, 오른쪽은 선명하게 둔다. 숫자 문자열 clip-path inset으로 분할 비율을 50%에서 35%, 65%, 50%로 움직인다. 0.3초, 0.9초, 1.55초에 각각 0.6초, 0.65초, 0.65초 power2.inOut 이동을 걸고 세로 분할선 x를 같은 비율로 맞춘다. 3초 타임라인 하나로 만들고 마지막 0.6초는 정지한다.
Overlay the before and after layers of <target> at identical coordinates. Set the left side to blur 3px and opacity 0.55, and keep the right side sharp. Use a numeric-string clip-path inset to move the split ratio from 50% to 35%, 65%, and 50%. Start the moves at 0.3, 0.9, and 1.55 seconds with respective durations of 0.6, 0.65, and 0.65 seconds and ease power2.inOut. Match the vertical divider x position to the same ratio. Use a single 3-second timeline and hold still for the final 0.6 seconds.
<파일>의 <대상>에 <대상>의 전후 레이어를 동일 좌표로 겹치고 왼쪽은 blur 3px과 opacity 0.55, 오른쪽은 선명하게 둔다. 숫자 문자열 clip-path inset으로 분할 비율을 50%에서 35%, 65%, 50%로 움직인다. 0.3초, 0.9초, 1.55초에 각각 0.6초, 0.65초, 0.65초 power2.inOut 이동을 걸고 세로 분할선 x를 같은 비율로 맞춘다. 0.24초, 1.25초, 2.9초를 캡처해 전후 좌표 일치, 분할선과 마스크 동기화, 마지막 중앙 홀드를 확인한다. 시간은 GSAP 타임라인만 사용한다.
In <target> in <file>, Overlay the before and after layers of <target> at identical coordinates. Set the left side to blur 3px and opacity 0.55, and keep the right side sharp. Use a numeric-string clip-path inset to move the split ratio from 50% to 35%, 65%, and 50%. Start the moves at 0.3, 0.9, and 1.55 seconds with respective durations of 0.6, 0.65, and 0.65 seconds and ease power2.inOut. Match the vertical divider x position to the same ratio. Capture at 0.24, 1.25, and 2.9 seconds to check matching before and after coordinates, synchronization of the divider and mask, and the final centered hold. Use only a GSAP timeline for timing.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo