---
id: 587d78a8367417b2b2512ae6
title: Animate Multiple Elements at Variable Rates
challengeType: 0
videoUrl: ''
localeTitle: تحريك عناصر متعددة بأسعار متغيرة
---
## Description
في التحدي السابق ، قمت بتغيير معدلات الرسوم المتحركة @keyframes
عن طريق تغيير قواعد @keyframes
الخاصة بهم. يمكنك تحقيق الهدف نفسه عن طريق معالجة animation-duration
لعناصر متعددة. في الرسم المتحرك الذي يتم تشغيله في محرر الشفرات ، هناك ثلاثة "نجوم" في السماء تتألق في نفس المعدل في حلقة مستمرة. لجعلها تومض بمعدلات مختلفة ، يمكنك تعيين خاصية animation-duration
إلى قيم مختلفة لكل عنصر.
## Instructions
عيّن animation-duration
للعناصر مع الفئات star-1
، و star-2
، و star-3
to 1s ، و 0.9s ، و 1.1s ، على التوالي.
## Tests
```yml
tests:
- text: يجب أن تظل خاصية animation-duration
للنجمة مع الفئة class star-1
على 1s.
testString: 'assert($(".star-1").css("animation-duration") == "1s", "The animation-duration
property for the star with class star-1
should remain at 1s.");'
- text: يجب أن تكون خاصية animation-duration
للنجمة ذات الفئة star-2
0.9.
testString: 'assert($(".star-2").css("animation-duration") == "0.9s", "The animation-duration
property for the star with class star-2
should be 0.9s.");'
- text: يجب أن تكون animation-duration
للنجمة مع الفئة class star-3
هي 1.1s.
testString: 'assert($(".star-3").css("animation-duration") == "1.1s", "The animation-duration
property for the star with class star-3
should be 1.1s.");'
```
## Challenge Seed
## Solution
```js
// solution required
```