CSS3_animation

by Kim Ara

HTML

<div class="test01"></div>
<div class="test02">안녕</div>
<div class="test03">하세요</div>

<div class="test04">애니메이션 예제</div>

<div class="test05">fill-mode</div>

CSS

@keyframes myAnimation {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.test01 { animation: myAnimation 5s infinite; 
width:100px; height:100px; background-color:red}

@keyframes myAnimation02 {
  0%    { font-size: 10px; }
  25%   { font-size: 20px; }
  50%   { font-size: 30px; }
  70%   { font-size: 20px; }
  100%  { font-size: 10px; }
}
.test02 { animation: myAnimation02 5s infinite; }

@keyframes myAnimation03 {
  from { font-size: 10px; }
  to   { font-size: 20px; }
}
.test03 { animation: myAnimation03 5s infinite; }

.test04 {
   animation-name: myAnimation;
   animation-duration: 4s;
   animation-iteration-count: 10;
   animation-direction: alternate;
   animation-timing-function: ease-out;
   animation-fill-mode: forwards;
   animation-delay: 2s;
}