작성자 : 이연옥, 허종문
작성일 : 2015-10-01 수정: 2015-12-04
css 레퍼런스 설명:
CSS3 animation은 엘리먼트에 적용되는 CSS 스타일을 다른 CSS 스타일로 부드럽게 전환시켜 줍니다. animation은 애니메이션을 나타내는 CSS 스타일과 애니메이션의 중간 상태를 나타내는 키프레임들로 이루어집니다.
animation 은 단축속성을 지원해서 단축해서 한번에 기술해도되고, 속성을 따로 따로 기술해도 됩니다.
속성들이 생략이 가능하지만 name, duration 속성은 있어야 에니메이션이 됩니다.
animation: name duration timing-function delay iteration-count direction fill-mode play-state;
animation 속성의 하위 속성은 다음과 같습니다.
애니메이션의 이름으로 애니메이션의 중간 상태를 지정합니다. 중간 상태는 @keyframes 규칙을 이용하여 기술하는데 ``@keyframes` 의 이름을 사용합니다.
animation-name: keyframename | none | initial | inherit
한 싸이클의 애니메이션이 얼마에 걸쳐 일어날지 지정합니다.
animation-duration: time | initial | inherit;
중간 상태들의 전환을 어떤 시간간격으로 진행할지 지정합니다.
animation-timing-function: linear | ease |ease-in | ease-out | cubic-bezier(n,n,n,n) | initial | inherit;
엘리먼트가 로드되고 나서 언제 애니메이션이 시작될지 지정합니다.
animation-delay: time | initial | inherit;
애니메이션이 몇 번 반복될지 지정합니다. infinite로 지정하여 무한히 반복할 수 있습니다.
animation-iteration-count: number|infinite|initial|inherit;애니메이션이 종료되고 다시 처음부터 시작할지 역방향으로 진행할지 지정합니다.
animation-direction: normal | reverse | alternate | alternate-reverse | initial | inherit;애니메이션이 시작되기 전이나 끝나고 난 후 어떤 값이 적용될지 지정합니다.
animation-fill-mode: none | forwards | backwards | both | initial | inherit;
애니메이션을 멈추거나 다시 시작할 수 있습니다.
animation-play-state: paused | running | initial | inherit;- align-content
- align-items
- align-self
- @keyframes
- animation
- background-clip
- background-origin
- background-size
- border-bottom-left-radius
- border-bottom-right-radius
- border-image
- border-image-outset
- border-image-repeat
- border-image-slice
- border-image-source
- border-image-width
- border-radius
- border-top-left-radius
- border-top-right-radius
- box-shadow
- box-sizing
- column-count
- column-gap
- column-rule
- column-rule-color
- column-rule-style
- column-rule-width
- column-span
- column-width
- columns
- flex
- flex-basis
- flex-direction
- flex-flow
- flex-grow
- flex-shrink
- flex-wrap
- @font-face
- font-feature-settings
- hyphens
- justify-content
- opacity
- order
- outline-offset
- overflow-wrap
- overflow-x
- overflow-y
- perspective
- perspective-origin
- resize
- tab-size
- text-align-last
- text-overflow
- text-shadow
- transform
- transform-origin
- transform-style
- transition
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- word-break
- word-wrap