mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): check individual properties (#51458)
This commit is contained in:
+7
-1
@@ -16,7 +16,13 @@ Replace `linear` to `ease-in-out` in the `.cabin` selector.
|
||||
Your `.cabin` selector should have an `animation` property set to `cabins 10s ease-in-out infinite`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cabin')?.animation === '10s ease-in-out 0s infinite normal none running cabins');
|
||||
const cabinElementStyles = new __helpers.CSSHelp(document).getStyle('.cabin');
|
||||
assert(
|
||||
cabinElementStyles?.animationName === "cabins" &&
|
||||
cabinElementStyles?.animationDuration === "10s" &&
|
||||
cabinElementStyles?.animationTimingFunction === "ease-in-out" &&
|
||||
cabinElementStyles?.animationIterationCount === "infinite"
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user