CSS

[animation] CSS - animation-direction 속성 - 애니방향 (= 움직임방향 = 애니메이션디렉션속성, IE10)

animation-direction 예제

 

<style> 

#hz {

  padding:20px 30px;

  width:200px;

  background: red;

  position: relative;

  -webkit-animation: homzzang 5s 2; /* Safari 4.0 - 8.0 */

  -webkit-animation-direction: alternate; /* Safari 4.0 - 8.0 */

  animation: homzzang 5s 2;

  animation-direction: alternate;

}


/* Safari 4.0 - 8.0 */

@-webkit-keyframes homzzang {

  0%   {background: red; left: 0px; top: 0px;}

  25%  {background: yellow; left: 200px; top: 0px;}

  50%  {background: blue; left: 200px; top: 200px;}

  75%  {background: green; left: 0px; top: 200px;}

  100% {background: red; left: 0px; top: 0px;}

}


@keyframes homzzang {

  0%   {background: red; left: 0px; top: 0px;}

  25%  {background: yellow; left: 200px; top: 0px;}

  50%  {background: blue; left: 200px; top: 200px;}

  75%  {background: green; left: 0px; top: 200px;}

  100% {background: red; left: 0px; top: 0px;}

}

</style>


<div id='hz'>홈짱닷컴 Homzzang.com</div>



결과보기

 

 

animation-direction 정의

 

애니메이션 방향 (= 움직이는 방향)

 



기본값 : normal
속성상속 : X
애니효과 : X
CSS버전: CSS3
JS구문 : object.style.animationDirection="속성값"
브라우저: IE10이상 주요 최신브라우저 (구버전 경우, -webkit- , -moz- , -o- 등 붙여 사용)

 

 

 

animation-direction 구문

 

선택자 {animation-direction: 속성값;}

 


 

[속성값]

 

normal

기본값. 애니메이션 정방향 재생

 

reverse

애니메이션 역방향 재생.

 

alternate

애니메이션 정방향 재생 후 역방향 재생.

 

alternate-reverse

애니메이션 역방향 재생 후 정방향 재생.

 

initial

이 속성의 기본값으로 설정.

 

inherit

부모 요소 속성을 상속.

 



분류 제목
grid CSS - Grid Container - 그리드 컨테이너
counter CSS - content 속성 ★ - 생성된 콘텐츠 삽입 (= content속성 = 콘텐트속성/컨텐트속성)
css CSS - 구글 번역바 숨기기/제거 (Google TranslateBar hide/remove)
css CSS - 네임펜 (= 형광펜) 효과
grid CSS - Grid Intro - 그리드 소개 (※ 그리드 관련 속성 개괄)
css CSS - 코드펜 스타트 코딩 버튼 테두리 효과 (Codepen Start Coding Button Bord…
box CSS - inline-size 속성 - 인라인방향으로 요소 크기 지정 (= inline-size속성 = 인…
selector CSS - :enabled 가상선택자 - 활성화 된 요소 선택 (= 작동가능요소 = 실행가능요소 = :ena…
column CSS - column-rule 속성 - 컬럼구분자 스타일 일괄지정 (= 컬럼구분바 단축속성 = column…
selector CSS - ::placeholder 가상선택자 - 플레이스홀더 선택자
column CSS - column-rule-style 속성 - 컬럼구분자 모양 지정 (= 컬럼구분바 생김새 = colu…
column CSS - Multiple Columns - (멀티 컬럼 개괄) ※ 열 나누기 = 단락 나누기
css CSS - IE 전용 CSS핵
func CSS - max() 함수 - 최대값 (= max함수 = 맥스함수)
box CSS - block-size 속성 - 블락 방향으로 요소 크기 지정 (= block-size속성 = 블락…
15/35
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티
웹유틸
회원센터
홈짱닷컴 PC버전 로그인