animation

ball

선택자 :before 와 :after , + 와 ~

  :before 와 :after 는 태그의 앞이나 뒤에 컨텐츠를 추가하거나
    스타일을 줄 수 있다. ( content: " " ; 속성으로 지정)
    
  +는  바로 뒤에 오는 하나의 형제요소만 선택할 수 있고 
  ~ 은 뒤에 오는 모든 형제요소를 선택할 수 있다.
 

@keyframes 애니메이션 정의하기

 @keyframes * {                 ---- 임의의 이름을 지정하여 정의 시작
 
  0% (=from) { 속성 : 속성값; }    ---- 첫 장면에서의  상태 지정
     ...                        ---- n번째 장면에서의  상태 지정
     ...                                ....
 
  100% (=to) { 속성 : 속성값; }    ---- 마지막 장면에서의  상태 지정
 }

animation-direction : normal; 정방향 (0~100)

circle-01

animation-direction : reverse; 역방향 (100~0)

circle-02

animation-direction : alternate; 왕복 (0~100~0)

circle-03

animation-direction : alternate-reverse; 역방향 왕복 (100~0~100)

circle-04

animation-timing-function 가속감속 등

ease
ease-in
ease-out
ease-in-out
linear
cubic-bezier
circle-a1
circle-a2
circle-a3
circle-a4

배경 이미지 전환 애니메이션

animation-play-state:running/paused; 애니메이션 진행/멈춤