같은 글자의 위아래 반쪽이 반대 방향으로 벌어지고 새 문구가 모여 교체되는 효과The top and bottom halves of a phrase split apart and a new phrase closes in from the opposite sides.
'SALE'이 중앙선에서 위아래로 100% 벌어져 500ms에 사라지고, 100ms 뒤 'NEW'의 반쪽들이 반대에서 모여 닫힌다
두 복사본의 절반 경계가 어긋나 글자 중간에 가로 틈이 보인 채 멈춘다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 분리 시간 | 500ms | 300~700ms | 반쪽 이동 |
| 이동 거리 | 100% | 60~120% | 자기 높이 기준 |
| 교체 대기 | 100ms | 0~200ms | 새 문구가 모이기 전 |
| 이징 | power3.inOut | power2~power4.inOut | 경계가 또렷 |
/* .top{clip-path:inset(0 0 50% 0)} .bot{clip-path:inset(50% 0 0 0)} (같은 글자 복사본 2개) */
tl.to('.old.top', { yPercent: -100, duration: 0.5, ease: 'power3.inOut' }, 0)
.to('.old.bot', { yPercent: 100, duration: 0.5, ease: 'power3.inOut' }, 0)
.from('.new.top', { yPercent: 100, duration: 0.5, ease: 'power3.inOut' }, 0.6)
.from('.new.bot', { yPercent: -100, duration: 0.5, ease: 'power3.inOut' }, 0.6);그대로 붙여 넣는다Paste as is
<대상>의 문구 '<구 문구>'를 '<신 문구>'로 교체할 때 반쪽 분리를 써줘. 같은 글자 복사본 2개를 clip-path 50%로 위아래 나눠, 구 문구는 0.5초 동안 위아래로 100% 벌어져 사라지고 0.1초 뒤 신 문구 반쪽들이 반대 방향에서 0.5초에 모이게 해. 이징 power3.inOut, 한글은 자모가 아닌 글자 전체 기준으로 클립해.
When replacing '<old text>' with '<new text>' in <target>, use a half split. Make two copies clipped at exactly 50% top and bottom; the old phrase splits 100% apart over 0.5 seconds and disappears, then 0.1 seconds later the new halves close in from the opposite directions in 0.5 seconds. Ease power3.inOut, and clip the whole glyph for Korean.
<파일>의 문구 교체에 반쪽 분리를 적용해. 복사본 두 개에 clip-path inset(50%) 경계를 쓰고 yPercent ±100을 0.5초 tween. 0초와 신 문구 완성 후에 경계 틈이 없는지, 0.25초에 반쪽이 벌어진 상태인지 캡처로 확인해.
Apply a half split to the phrase swap in <file> using two copies with clip-path inset at 50% and yPercent +/-100 over 0.5s. Capture at 0.25s to see the gap and after the new phrase settles to confirm there is no seam.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo