# 비대칭 타이밍 (Asymmetric animation timing)

분류: 모션 > 모션 원칙·시간 (Motion > Motion principles & timing)
주소: https://ui-glossary-xi.vercel.app/motion/asymmetric-timing
다른 이름: 비대칭 애니메이션, 비대칭 타이밍, 들어올 때 나갈 때 시간 다르게, 열기 닫기 시간 다르게, asymmetric timing, asymmetric animation timing, asymmetric animation

들어올 때와 나갈 때 시간·곡선을 다르게 주기. 같은 요소가 들어올 때와 나갈 때 움직임의 시간(과 곡선)을 다르게 주는 것. web.dev(Paul Lewis)는 이렇게 대칭을 깨면 개성과 대비를 주면서도 사용자 동작에 빨리 반응할 수 있다고 한다. 애틀래시안도 "Entrances and exits are not symmetrical"이라고 적는다. 다만 어느 쪽을 길게 할지는 출처마다 다르다 — 아래 표처럼 web.dev는 누가 띄웠느냐로 나누고, 닐슨 노먼 그룹·애틀래시안·머티리얼 2는 나갈 때를 짧게 준다.

| 출처 | 들어올 때 | 나갈 때 |
|---|---|---|
| web.dev — 사용자가 부른 것(옆 내비게이션 등) | 빠르게, 약 100ms | 조금 천천히, 약 300ms |
| web.dev — 코드가 띄운 것(오류·모달) | 조금 천천히, 약 300ms | 아주 빠르게 |
| 닐슨 노먼 그룹 — 팝업 창 | 300ms | 200 또는 250ms |
| 애틀래시안 — 플래그 | 250ms, ease-out bold 곡선 | 50~100ms 짧게(예: 200ms), ease-in practical 곡선 |
| 머티리얼 2 — 내비게이션 드로어 / 카드 | 250ms / 300ms | 200ms / 250ms |

## 용도
- 사용자 동작에는 늘 빨리 반응한다 — web.dev "The rule of thumb is to always respond to a user interaction quickly."
- 나가는 움직임은 짧게 — 머티리얼 2는 나가는 전환이 사용자의 다음 일보다 주의가 덜 필요하기 때문이라고, 애틀래시안은 닫힌 요소가 작업 흐름을 막지 않게 하려는 것이라고 설명한다.
- 곡선도 나눠 준다 — 애틀래시안은 들어올 때 굵은 감속 곡선(ease-out bold), 나갈 때 실용적 가속 곡선(ease-in practical)을 쓴다.

## 헷갈릴 수 있는 UI
- 지속 시간 (Duration, https://ui-glossary-xi.vercel.app/md/duration.md): 지속 시간은 움직임 하나의 길이이고, 비대칭 타이밍은 같은 요소의 들어오기·나가기에 그 길이를 서로 다르게 주는 방법이다.

## AI에게 이렇게 말하세요
- 한국어: 알림 패널이 들어올 때 300ms ease-out, 나갈 때 200ms ease-in으로 시간을 다르게 해 줘(비대칭 타이밍). 움직임 줄이기 설정이면 움직임 없이 바로 열고 닫아 줘.
- English: Use asymmetric timing for the notification panel: enter over 300ms with ease-out, exit over 200ms with ease-in. With prefers-reduced-motion, open and close instantly without motion.

이렇게 말하면 엉뚱한 게 나와요:
- "열기·닫기 모두 300ms로" — 시간을 하나로 맞추면 대칭이 된다. 들어오기·나가기 시간을 따로 말해야 비대칭이 된다. (대신 나오는 것: 지속 시간)
- "닫힐 때 더 짧게" — 출처마다 어느 쪽을 짧게 할지 다르다(web.dev는 사용자가 연 메뉴의 닫힘을 더 길게 본다). 들어오기·나가기 ms를 둘 다 숫자로 준다.

## 핵심 구조 요점
### 태그
- CSS: 열린 상태와 닫힌 상태에 transition을 따로 적는다 — 바뀌어 갈 쪽 상태의 transition이 쓰인다. 예: .panel { transition: transform 200ms ease-in } .panel.open { transition: transform 300ms ease-out } (web.dev 'Different transitions for enter or exit' 방식).
- 자바스크립트: 열 때와 닫을 때 element.animate(…, { duration })을 각각 다른 값으로 부른다.

### 접근성 속성
- 시간 자체에는 ARIA가 없다. 애틀래시안은 초점 이동과 화면 낭독기 알림을 움직임이 끝날 때가 아니라 시작할 때 하라고 한다.

### 키보드
- 키 조작은 없다. 이 사전의 체험은 '들어올 때'·'나갈 때' 선택 상자로 두 시간을 따로 고르면 패널이 들어와 0.7초 머문 뒤(이 사전이 정한 값) 나간다. 들어올 때 ease-out, 나갈 때 ease-in. 나간 뒤에는 '다시 재생'으로 다시 들어온다.

## 출처
- [web.dev — Asymmetric animation timing](https://web.dev/articles/asymmetric-animation-timing)
- [Atlassian Design — Motion](https://atlassian.design/foundations/motion)
- [Atlassian Design — Applying motion](https://atlassian.design/foundations/motion/applying-motion)
- [Nielsen Norman Group — Executing UX Animations: Duration and Motion Characteristics](https://www.nngroup.com/articles/animation-duration/)
- [Material Design 2 — Speed](https://m2.material.io/design/motion/speed.html)
- [web.dev — Learn CSS: Transitions](https://web.dev/learn/css/transitions)
