Skip to content

Commit d1666e8

Browse files
committed
Adjust text about longhands
1 parent 6f1d9ae commit d1666e8

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

image-animation-property/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,20 @@ when the element is focused or hovered.
271271
```
272272

273273
#### Longhands And Further Controls
274-
The property above could be broken down into longhands (`image-animation-play-state`, `image-animation-iteration-count`).
274+
The property above could be broken down into longhands
275+
possibly similar to those of the `animation-*` family of properties
276+
(`image-animation-play-state`, `image-animation-iteration-count`).
275277
Depending on use cases,
276-
additional properties inspired by `animation-*` properties could also be considered .
278+
additional properties inspired by `animation-*` properties could also be considered.
279+
280+
Note: if we want to go this way,
281+
it might be better to rename some values discussed above;
282+
names in this explainer were chosen to maximize self-explanatory power,
283+
but if we want to be maximize similarity to the `animation-*` properties,
284+
different names may be better.
285+
For instance,
286+
`loop` in `animation-iteration-count` is actually called `infinite`,
287+
and `once` would be `1`.
277288

278289
#### Control Over the Paused State
279290
The `paused` value could be extended to give control over which frame of the image is displayed when it is stopped.

0 commit comments

Comments
 (0)