요소가 제자리에서 위아래로 튀다가 원래 위치로 돌아온다An element bounces up and down in place, then returns to its original position.
900ms 동안 높이 24px로 3번 튀며 진폭이 줄고 원위치에 정확히 돌아온다. 3초 뒤 한 번 반복한다
1초 간격으로 무한 반복해 산만하고, 모든 버튼이 함께 튄다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 900ms | 700~1100ms | |
| 높이 | 24px | 16~32px | 첫 진폭 |
| 튕김 | 3회 | 2~4회 | 진폭은 매번 0.55배 |
| 이징 | ease-out | power2.out | 상승은 out, 하강은 in |
[24, 13, 7, 0].forEach((h, i) => {
tl.to('.btn', { y: -h, duration: 0.12, ease: 'power2.out' }, 0.3 + i * 0.24)
.to('.btn', { y: 0, duration: 0.12, ease: 'power2.in' }, 0.42 + i * 0.24);
});그대로 붙여 넣는다Paste as is
<대상> 버튼에 주의를 끄는 통통 튀기를 넣어줘. 0.3초부터 높이 24px, 13px, 7px 순으로 3번 튀고, 각 상승은 0.12초 power2.out, 하강은 0.12초 power2.in으로 하고 마지막은 y 0에 정확히 멈추게 해.
Add an attention bounce to the button in <target>. From 0.3 seconds bounce three times with heights 24px, 13px and 7px, each rise 0.12s power2.out and each fall 0.12s power2.in, ending exactly at y 0.
<파일>에 bounce attention을 구현해. 높이 [24, 13, 7], 상승 0.12s power2.out, 하강 0.12s power2.in, 시작 0.3초. 0.42초, 0.66초, 0.9초, 1.2초를 캡처해 높이가 감소하는지, 1.2초에 y가 0인지 확인해.
Implement bounce attention in <file>: heights [24, 13, 7], rise 0.12s power2.out, fall 0.12s power2.in, start 0.3s. Capture at 0.42s, 0.66s, 0.9s and 1.2s and verify the heights decrease and y is 0 at 1.2s.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo