نمط الرسوم المتحركة
مثال
تغيير خاصية animationIterationCount لعنصر <div>:
document.getElementById("myDIV").style.animationIterationCount = "infinite";
التعريف والاستخدام
تعيّن خاصية animationIterationCount عدد المرات التي يجب تشغيل رسم متحرك أو إرجاعها.
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
تحدد الأرقام التي يتبعها Moz الإصدار الأول الذي يعمل بالبادئة.
Property | |||||
---|---|---|---|---|---|
animationIterationCount | 43.0 | 79.0 | 16.0 5.0 Moz |
Not supported | 30.0 |
بناء الجملة
إرجاع خاصية AnimationIterationCount:
object.style.animationIterationCount
قم بتعيين خاصية AnimationIterationCount:
object.style.animationIterationCount = "number|infinite|initial|inherit"
قيم الملكية
Value | Description |
---|---|
number | A number that defines how many times an animation should be played. Default value is 1 |
infinite | Specifies that the animation should be played infinite times (for ever) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
تفاصيل تقنية
القيمة الافتراضية: | 1 |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل خاصية Animation-iteration-count لعنصر |
إصدار CSS | CSS3 |
الصفحات ذات الصلة
مرجع CSS: خاصية Animation-iteration-count