기존 문구에 취소선이 그어진 뒤 새 문구가 옆이나 아래에 나타나는 교체 효과A strikethrough is drawn over the old text, then the new text appears beside or below it.
"월 29,000원"에 0.35초간 선이 좌에서 우로 그어지고 0.1초 뒤 "월 19,000원"이 아래에서 올라온다
취소선과 새 문구가 동시에 나오거나 취소선이 글자보다 옅어 지워졌는지 알 수 없다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 취소선 시간 | 0.35s | 0.25~0.5s | 좌에서 우로 scaleX 0에서 1 |
| 취소선과 교체 사이 | 0.1s | 0.05~0.2s | 정지가 있어야 지웠다는 것이 읽힘 |
| 새 문구 등장 | 0.25s | 0.2~0.4s | y 12px 아래에서 위로 |
| 옛 문구 남는 불투명도 | 0.45 | 0.35~0.6 | 지운 뒤 흐리게 유지 |
tl.fromTo('.strike', {scaleX:0}, {scaleX:1, duration:0.35, ease:'power2.inOut', transformOrigin:'left center'}, 0.4)
.to('.old', {opacity:0.45, duration:0.2}, 0.75)
.fromTo('.new', {y:12, opacity:0}, {y:0, opacity:1, duration:0.25, ease:'power2.out'}, 0.85);그대로 붙여 넣는다Paste as is
<대상>의 "이전 값"에 취소선이 좌에서 우로 0.35초 동안 그어지게 하고, 0.1초 쉰 뒤 "새 값"이 12px 아래에서 0.25초에 올라오게 만들어줘. 옛 값은 취소선 뒤 불투명도 0.45로 남겨. 세 동작은 한 GSAP 타임라인 하나로 묶어.
On <target>, draw a strikethrough over the old value left to right in 0.35s, wait 0.1s, then bring in the new value from 12px below in 0.25s. Leave the old value at 0.45 opacity after the strike. Bind all three moves in a single GSAP timeline.
<파일>에 취소선 교체를 적용해. .strike scaleX 0에서 1을 0.4초 시작, 0.35초, power2.inOut. .old opacity 0.45는 0.75초, .new는 0.85초에 y 12에서 0으로 0.25초. 0.3초·0.7초·1.3초 시점을 캡처해 선 진행 중, 선 완료, 새 문구 완료가 순서대로 보이는지 확인해.
Apply strikethrough replace in <file>. .strike scaleX 0 to 1 at 0.4s, 0.35s, power2.inOut; .old opacity 0.45 at 0.75s; .new y 12 to 0 at 0.85s over 0.25s. Capture at 0.3s, 0.7s and 1.3s and verify the strike mid-draw, the strike complete, and the new text settled, in that order.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo