animation-fill-mode :
Animasyon tamamlandığında veya gecikme olduğunda obje için bir stil (konum, basamak) belirler.
Örnek
div {
width: 100px;
height: 100px;
background: green;
color: white;
position: relative;
-webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */
animation: mymove 5s infinite;
-webkit-animation-duration: 4s; /* Chrome, Safari, Opera */
animation-duration: 4s;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes mymove {
from {top: 0px;}
to {top: 200px;}
}
@keyframes mymove {
from {top: 0px;}
to {top: 200px;}
}
Codepen Ön izleme
Css Sözdizimi
| Değer | Açıklama |
| none | Herhangi bir değer almaz. |
| forwards | animation-iteration-count ile yenileme miktarı belirlenir. Obje son karede (animasyon basamağında) durur. |
| backwards | Obje animasyon bitince veya donduğunda i ilk kareye (animasyon basamağına) döner. |
| animation-delay | Animasyonun yapılacağı süreyi belirler. Gecikme süresi de denilebilir. |
| both | |
| İnital | |
| İnherit |
Tarayıcı Desteği
| 43.0 4.0-webkit |
16.0 5.0-moz |
10.0 | 9.0 4.0-webkit |
30.0 12.0-o 15.0-webkit |