요소가 기준 위치나 각도의 양쪽을 오가다가 멈춘다An element oscillates on both sides of its rest position or angle, then stops.
600ms 동안 위치 진폭 6px로 4번 왕복하고 감쇠 0.6으로 줄며 멈춘다
감쇠 없이 계속 진동하거나 진폭 30px로 흔들어 화면이 무너진 것처럼 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 600ms | 400~800ms | |
| 위치 진폭 | 6px | 4~10px | 또는 회전 6도 |
| 왕복 | 4회 | 3~5회 | |
| 감쇠 | 0.6 | 0.5~0.7 | 다음 진폭 배율 |
const amps = [6, -3.6, 2.2, -1.3, 0]; // 감쇠 0.6
amps.forEach((x, i) => tl.to('.field', { x, duration: 0.12, ease: 'sine.inOut' }, 0.5 + i * 0.12));그대로 붙여 넣는다Paste as is
<대상> 입력 필드에 셰이크를 넣어줘. x를 6, -3.6, 2.2, -1.3, 0px 순으로 0.12초씩 sine.inOut으로 옮겨 총 0.6초 동안 감쇠 진동하게 하고 시작은 0.5초야. 끝은 정확히 x 0.
Add a shake to the input field in <target>. Move x through 6, -3.6, 2.2, -1.3, 0px in 0.12-second sine.inOut steps for a damped 0.6-second oscillation starting at 0.5 seconds. End at exactly x 0.
<파일>의 오류 표시에 shake를 적용해. amps [6, -3.6, 2.2, -1.3, 0], 구간 0.12초, ease sine.inOut, 시작 0.5초. 0.5초, 0.62초, 0.74초, 1.1초를 캡처해 좌우 진폭이 줄고 1.1초에 x가 정확히 0인지 확인해.
Apply shake to the error state in <file>: amps [6, -3.6, 2.2, -1.3, 0], segment 0.12s, ease sine.inOut, start 0.5s. Capture at 0.5s, 0.62s, 0.74s and 1.1s and verify the amplitude decays and x is exactly 0 at 1.1s.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo