animation-duration প্রোপার্টি নির্ধারণ করে যে এক teljes এনিমেশন চক্র (one cycle) কতক্ষণ ধরে চলবে। মান সেকেন্ড (s) বা মিলিসেকেন্ড (ms) এ দেওয়া হয়। ডিফল্ট মান 0s (এনিমেশন চলবে না)।
উদাহরণ
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
position: relative;
background: red;
animation-name: myanim;
animation-duration: 2s;
}
@keyframes myanim {
from { left: 0px; background-color: green; }
to { left: 200px; background-color: blue; }
}
</style>
</head>
<body>
<div></div>
</body>
</html>
টিপ: একাধিক এনিমেশনের জন্য কমা দিয়ে আলাদা আলাদা ডুরেশন দেওয়া যায়: animation-duration: 2s, 1s, 3s;।