Issue with "Element.animate()": wrong scenario mentioned #13487
Labels
Content:WebAPI
Web API docs
help wanted
If you know something about this topic, we would love your help!
MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/animate
and https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats
What information was incorrect, unhelpful, or incomplete?
This mentions two scenarios when only one keyframe is mentioned:
from
key frame is inferred. It's the elements current state. The corresponding code snippet covers this case.to
key frame is inferred. In what scenario a browser will be able to infer the end frame given only one frame? Unlike CSS @keyframe rule there are noto
and100%
keywords in DOM API. I don't think this scenario is possible. If it is possible, then please provide an example on the pages.I think the author is talking about following case:
But in this case there are two keyframes provided.
Specific section or headline?
https://developer.mozilla.org/en-US/docs/Web/API/Element/animate#implicit_tofrom_keyframes
and also
https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats#implicit_tofrom_keyframes
What did you expect to see?
Correct the description saying
from
frame is inferred if only one keyframe is provided.Or provide an example for the second scenario.
Did you test this? If so, how?
MDN Content page report details
en-us/web/api/element/animate
The text was updated successfully, but these errors were encountered: