# 지속 시간 (Duration)

분류: 모션 > 모션 원칙·시간 (Motion > Motion principles & timing)
주소: https://ui-glossary-xi.vercel.app/motion/duration
다른 이름: 애니메이션 시간, 재생 시간, 전환 시간, 모션 시간, 몇 ms, duration, animation duration, animation-duration, transition-duration

움직임이 시작부터 끝까지 걸리는 시간. 움직임 하나가 시작부터 끝까지 걸리는 시간(애틀래시안 "how long a motion event takes from start to finish"). 이징(시간에 따른 빠르기 변화)과 함께 움직임의 속도를 정한다(머티리얼 2). 닐슨 노먼 그룹은 너무 빠르면 알아보기 어렵거나 어지럽고, 너무 느리면 방해가 되고 기다리는 것처럼 느껴진다며, 너무 짧은 경우보다 너무 긴 경우가 훨씬 흔하다고 한다. 권하는 값은 출처마다 다르다(아래 표).

| 출처 | 권하는 값(원문) |
|---|---|
| 닐슨 노먼 그룹 | 대부분 100~500ms. 체크박스·토글 같은 단순 피드백 약 100ms, 모달처럼 화면이 크게 바뀌면 200~300ms, 500ms부터 질질 끄는 느낌 — 대개 100~400ms(400ms는 아주 느림) |
| 애틀래시안 | 상호작용(호버·누름) 50~150ms, 전환(들어오기·나가기·옮기기) 150~400ms. 하루 수십 번 보는 움직임은 150ms 미만 |
| 카본 | 토큰 70·110·150·240·400·700ms(버튼·토글 70ms ~ 배경 어둡게 700ms). 점검표: 마이크로인터랙션 90~120ms |
| 머티리얼 3 | short 50~200ms, medium 250~400ms, long 450~600ms, extra long 700~1000ms(드묾, 사용자 입력 없는 주변 전환) |
| 플루언트 2 | 수치 없이 '큰 요소일수록 더 길게, 기다리게 하지 말 것' |

## 용도
- 크기·거리에 맞춘다 — 클수록, 멀리 갈수록 길게(닐슨 노먼 그룹·카본·플루언트 2·애틀래시안·머티리얼 2).
- 자주 보는 움직임일수록 짧게(닐슨 노먼 그룹, 애틀래시안). 나갈 때는 들어올 때보다 짧게 주는 출처가 많다 — 비대칭 타이밍 항목.
- 개발 팀에 넘길 때는 프레임이 아니라 밀리초로 적는다(닐슨 노먼 그룹 "durations (in milliseconds, not frames)").

## 헷갈릴 수 있는 UI
- 도허티 임계 (Doherty threshold, https://ui-glossary-xi.vercel.app/md/doherty-threshold.md): 도허티 임계는 사용자가 누른 뒤 시스템이 응답하기까지의 시간 기준이고, 지속 시간은 응답으로 나온 움직임 하나가 재생되는 길이다.
- 비대칭 타이밍 (Asymmetric animation timing, https://ui-glossary-xi.vercel.app/md/asymmetric-timing.md): 지속 시간은 움직임 하나의 길이이고, 비대칭 타이밍은 같은 요소가 들어올 때와 나갈 때 그 길이(와 곡선)를 다르게 주는 방법이다.
- 생산적·표현적 모션 (Productive / Expressive motion, https://ui-glossary-xi.vercel.app/md/productive-expressive-motion.md): 생산적·표현적 모션은 움직임의 성격을 고르는 체계이고, 지속 시간은 그 안의 한 값이다. 카본은 생산적 모션이 표현적 모션보다 훨씬 빠르다고 한다.

## AI에게 이렇게 말하세요
- 한국어: 모달이 열릴 때 250ms, 닫힐 때 200ms로 해 줘. 열릴 때 ease-out, 닫힐 때 ease-in. 움직임 줄이기 설정이면 움직임 없이 바로 열고 닫아 줘.
- English: Open the modal over 250ms with ease-out and close it over 200ms with ease-in. With prefers-reduced-motion, open and close instantly without motion.

이렇게 말하면 엉뚱한 게 나와요:
- "천천히 열리게" — 곡선(천천히 출발)을 말하는지 시간(길게)을 말하는지 모호하다. '300ms'처럼 시간을 숫자로 주고 곡선은 따로 말한다. (대신 나오는 것: 이즈 인 아웃)
- "반응 빠르게 해 줘" — 서버 응답 속도로 읽힐 수 있다. 움직임 길이를 줄이려면 '애니메이션 150ms'처럼 지속 시간을 말한다. (대신 나오는 것: 도허티 임계)

## 핵심 구조 요점
### 태그
- CSS: transition-duration·animation-duration — 초(s)나 밀리초(ms), 기본값 0s(web.dev).
- 자바스크립트: element.animate(frames, { duration: 300 }) — 숫자는 밀리초.

### 접근성 속성
- 시간 자체에는 ARIA가 없다. 애틀래시안은 움직임 줄이기 설정이면 움직임을 끄고 즉시 바꾼다('motion is off and instant').
- 애틀래시안: 초점 이동과 화면 낭독기 알림은 움직임이 끝난 뒤가 아니라 시작할 때 한다. 오류·확인·초점 표시를 느린 등장 뒤에 숨기지 않는다.

### 키보드
- 키 조작은 없다. 이 사전의 체험은 선택 상자로 100~1000ms를 고르면 같은 거리·같은 곡선(ease-out)에서 시간만 바꿔 재생한다.

## 출처
- [Nielsen Norman Group — Executing UX Animations: Duration and Motion Characteristics](https://www.nngroup.com/articles/animation-duration/)
- [Atlassian Design — Motion](https://atlassian.design/foundations/motion)
- [Atlassian Design — Applying motion](https://atlassian.design/foundations/motion/applying-motion)
- [Carbon Design System — Motion overview](https://carbondesignsystem.com/building-blocks/foundations/motion/overview/)
- [Material Design 3 — Easing and duration: Tokens & specs](https://m3.material.io/styles/motion/easing-and-duration/tokens-specs)
- [Material Design 2 — Speed](https://m2.material.io/design/motion/speed.html)
- [Fluent 2 — Motion](https://fluent2.microsoft.design/motion)
- [web.dev — Learn CSS: Transitions](https://web.dev/learn/css/transitions)
