대상의 색이 기존 색에서 다음 색으로 부드럽게 바뀌는 전환An element's color blends smoothly from its current color to the next.
막대가 0.45초 동안 청색 #2f6bff에서 노랑 #ffc83d로 바뀌고 옆 라벨도 같은 시각에 색이 바뀐다
색만 바뀌고 다른 단서가 없어 색맹 시청자가 변화를 못 읽거나, 색 전환이 0.1초 미만이라 깜빡임으로 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 길이 | 0.45s | 0.3~0.8s | 색 보간 |
| 이징 | sine.inOut | sine~power2.inOut | 부드럽게 |
| 전 색 | #2f6bff | 브랜드 토큰 | 시작 |
| 후 색 | #ffc83d | 브랜드 토큰 | 도착 |
tl.to('.bar', { backgroundColor: '#ffc83d', duration: 0.45, ease: 'sine.inOut' }, 0.4)
.to('.bar-label', { color: '#7a5a00', duration: 0.45, ease: 'sine.inOut' }, 0.4);그대로 붙여 넣는다Paste as is
GSAP으로 <대상> 막대의 색 전환을 넣어줘. 0.4초부터 0.45초 동안 backgroundColor를 #2f6bff에서 #ffc83d로 sine.inOut으로 바꾸고 같은 시각에 라벨 글자색도 #7a5a00으로 바꿔. 색만으로 의미를 전하지 않게 라벨에 상태 문구를 함께 넣어줘. paused 타임라인에 넣어.
Add a color transition to the <target> bar with GSAP. From 0.4s over 0.45s change backgroundColor from #2f6bff to #ffc83d with sine.inOut, and change the label text color to #7a5a00 at the same time. Do not rely on color alone, so include a state phrase in the label. Paused timeline.
<파일>의 <대상>에 color-transition을 적용해. backgroundColor #2f6bff→#ffc83d, 0.45s, sine.inOut, position 0.4, 라벨 color #7a5a00 동시. 0.4초·0.6초·1.0초를 캡처해 중간 색이 보간되는지, 전후 대비비가 3:1 이상인지 계산해.
Apply color-transition to <target> in <file>. backgroundColor #2f6bff to #ffc83d, 0.45s, sine.inOut, position 0.4, label color #7a5a00 in parallel. Capture at 0.4s, 0.6s and 1.0s to check the mid color interpolates and compute that before and after contrast is at least 3:1.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo