css

animation-timing-function

퓨어프 2023. 11. 30. 09:54
반응형

animation-timing-function 속성은 애니메이션 움직임의 속도를 설정합니다.

애니메이션은 움직임 시간, 움직임 지연 시간, 움직임 방향, 움직임 속도, 움직임 진행상태, 움직임 반복 횟수, 움직임 진행상태, 움직임 속도, 키프레임 이름 등을 설정하여 원하는 애니메이션을 구현 할 수 있습니다.

 

 

 


 

 

특징 설명
기본값 animation-timing-function : linear;
적용 animation
버전 CSS3
사용성 ★★★★★

정의(Definition)

  • animation-timing-function 속성은 애니메이션 움직임의 속도를 설정합니다.
  • animation-timing-function 속성은 애니메이션 움직임의 속도를 건너뛰기로 설정할 수 있습니다.
  • animation-timing-function 속성은 애니메이션 움직임의 속도를 큐빅 베지어 곡선값으로 설정할 수 있습니다.

애니메이션과 관련된 속성(Animation Related Properties)

  • animation 속성은 애니메이션과 관련된 속성을 일괄적으로 설정합니다.
  • animation-delay 속성은 애니메이션 지연 시간을 설정합니다.
  • animation-direction 속성은 애니메이션 움직임 방향을 설정합니다.
  • animation-duration 속성은 애니메이션 움직임 시간을 설정합니다.
  • animation-fill-mode 속성은 애니메이션이 끝난 후의 상태를 설정합니다.
  • animation-iteration-count 속성은 애니메이션 반복 횟수를 설정합니다.
  • animation-name 속성은 애니메이션 keyframe 이름을 설정합니다.
  • animation-play-state 속성은 애니메이션 진행상태를 설정합니다.
  • animation-timing-function 속성은 애니메이션 움직임의 속도를 설정합니다.

문법(Syntax)

animation-timing-function : linear | ease | ease-in | ease-out | ease-in-out | step-start | step-end | steps(int,start|end) | cubic-bezier(n,n,n,n) | inherit;

/* 기본 애니메이션 */
animation-timing-function : linear;
animation-timing-function : ease;
animation-timing-function : ease-in;
animation-timing-function : ease-out;
animation-timing-function : ease-in-out;
animation-timing-function : step-start;
animation-timing-function : step-end;
animation-timing-function : steps(int,start|end);
animation-timing-function : cubic-bezier(n,n,n,n);
animation-timing-function : inherit;

속성(Property)

속성값 값(예) 설명
linear animation-timing-function : linear; 처음 속도와 마지막 속도가 일정합니다.
ease animation-timing-function : ease; 처음엔 천천히 시작하여 빨라지고 마지막에 다시 느려집니다.
ease-in animation-timing-function : ease-in; 천천히 시작되어 정상 속도가 됩니다.
ease-out animation-timing-function : ease-out; 마지막에 천천히 속도를 줄여 끝납니다.
ease-in-out animation-timing-function : ease-in-out; 천천히 시작되어 정상 속도가 되었다가 마지막에 느려집니다.
step-start animation-timing-function : step-start; 애니메이션을 시작점에서만 표현됩니다.
step-end animation-timing-function : step-end; 애니메이션을 끝점에서만 표현됩니다.
steps(int, start|end) animation-timing-function : 4 start; 애니메이션을 단계별로 설정합니다.
cubic-bezier(n,n,n,n) animation-timing-function : cubic-bezier(1, 0.01, 0.07, 0.99); 베지어 곡선값을 만들어서 속도를 설정합니다.
inherit animation-timing-function : inherit; 애니메이션 움직임을 상위 요소한테 상속받습니다.
 
 
제일 많이 사용하는 이즈 인(ease in) 및 이즈 아웃(ease out)은 가장 친숙한 이징 애니메이션일 수 있습니다. 
 
애니메이션의 시작이나 끝(또는 둘 다!)에서 속도를 줄여 일반적인 선형 선을 매끄럽게 만드는 경우가 많습니다.
 
 
모션 확인하기
 
 

See the Pen Untitled by nono (@nonoday) on CodePen.

 
 
 
 
아래는 베지어 곡선 모션 소스 만들어주는 사이트
 
 
 
 
 
 
 
호환성(Compatibility)
 

cubic-bezier.com

 

cubic-bezier.com

 

참고(Reference)

 

반응형