-
Notifications
You must be signed in to change notification settings - Fork 23k
DRAFT: CSS scroll driven animation guide: range insets #42105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Merge remote-tracking branch 'upstream/main'
|
Preview URLs
Flaws (2)URL:
URL:
(comment last updated: 2025-12-16 00:39:40) |
fix: remove flex from example elements Flex interfering with writing-mode behaviour Co-authored-by: Brian Smith <[email protected]>
…ultipart/form-data (#42065) * docs(headers): clarify quotes requirement in Content-Disposition of multipart/form-data * Update files/en-us/web/http/reference/headers/content-disposition/index.md * Update files/en-us/web/http/reference/headers/content-disposition/index.md --------- Co-authored-by: Hamish Willee <[email protected]>
Reworded instructions and explanations for clarity and consistency.
* Fix arrow function syntax in example The original provided example is correct, but I think the `arrow function` is literally **equivalent** to an **anonymous function**. * Fix syntax * Update files/en-us/learn_web_development/core/scripting/functions/index.md Co-authored-by: Chris Mills <[email protected]> * Update files/en-us/learn_web_development/core/scripting/functions/index.md Co-authored-by: Chris Mills <[email protected]> * Refactor map function to use the anynomous function syntax Refactor map function to use arrow function syntax. * Fix a syntax error * Replace terminal period with colon * Correct arrow function syntax in event listener example Fix syntax error in the arrow function example for addEventListener. * Add nolint to problem code block, grammar nits --------- Co-authored-by: Joshua Chen <[email protected]> Co-authored-by: Chris Mills <[email protected]>
Updated background-repeat references to include background-repeat-x and background-repeat-y as supported, because Safari does support these two properties
* Revise CSS timeline-scope property Updated the documentation for the `timeline-scope` CSS property to enhance clarity and consistency. Improved examples and descriptions related to timeline scope and its usage. * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/css/reference/properties/timeline-scope/index.md Co-authored-by: Brian Smith <[email protected]> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Brian Smith <[email protected]>
* Add useful reference links to to MDN docs Most of the function names on this page contained links in them, while some lacked it. I added the missing links so that it is easier for the users to access the docs for the referenced functions. * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Estelle Weyl <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* chore: auto-fix Markdownlint, Prettier, and front-matter issues * Update files/en-us/web/css/reference/properties/animation-range/index.md * Update files/en-us/web/css/reference/properties/animation-range/index.md --------- Co-authored-by: Estelle Weyl <[email protected]>
* Draft a federated identity guide * Update files/en-us/web/security/authentication/federated_identity/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/security/authentication/federated_identity/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * back-channel logout example sentence * OP->IdP * Clearer language * ... * ... * Clarify authorization code injection * Reword client id preamble * Update CSRF description * Add a section on FedCM * Link to BCP * Mention PKCE downgrade attacks * Recommend client auth based on public-key crypto * Add sections on choosing idps and a summary * Update wording for client secret * clarify that PKCE is not used when the attacks work * Apply suggestions from code review Co-authored-by: Hamish Willee <[email protected]> * Hint that client===RP * Review feedback --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hamish Willee <[email protected]>
Add 'json' as a value for sec-fetch-dest
* New 'Defenses' page * Move top-level pages under 'Defenses' * Update sidebar * Fix wiki history * Fix a link * Apply suggestions from code review Co-authored-by: Chris Mills <[email protected]> * Fix review comments --------- Co-authored-by: Chris Mills <[email protected]>
* chore: auto-fix Markdownlint, Prettier, and front-matter issues * Fix more --------- Co-authored-by: Joshua Chen <[email protected]>
|
This pull request has merge conflicts that must be resolved before it can be merged. |
|
|
||
| We apply the animation and an [anonymous view progress timeline](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines#anonymous_view_progress_timeline_the_view_function) to the element we want to animate: | ||
|
|
||
| ```css live-sample___default live-sample___selector30 live-sample___selector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| ```css live-sample___default live-sample___selector30 live-sample___selector | |
| ```css live-sample___default live-sample___selector30 live-sample___selector |
| } | ||
| ``` | ||
|
|
||
| ```html hidden live-sample___default live-sample___selector30 live-sample___selector live-sample___range live-sample___range_both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| ```html hidden live-sample___default live-sample___selector30 live-sample___selector live-sample___range live-sample___range_both | |
| ```html hidden live-sample___default live-sample___selector30 live-sample___selector live-sample___range live-sample___range_both |
| </main> | ||
| ``` | ||
|
|
||
| ```css hidden live-sample___default live-sample___selector30 live-sample___selector live-sample___range live-sample___range_both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| ```css hidden live-sample___default live-sample___selector30 live-sample___selector live-sample___range live-sample___range_both | |
| ```css hidden live-sample___default live-sample___selector30 live-sample___selector live-sample___range live-sample___range_both |
|
|
||
| ## Controlling insets with animation-range | ||
|
|
||
| By default, a keyframe animation's range is the same as the entirety of the timeline defined by the {{cssxref("animation-timeline")}}. This range can be restricted, or inset. Animation keyframes can be attached in reference to an animation attachment range, restricting the animation’s active interval to that range of a timeline, with the {{cssxref("animation-range")}} property, which is shorthand for {{cssxref("animation-range-start")}} and {{cssxref("animation-range-end")}}, in that order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| By default, a keyframe animation's range is the same as the entirety of the timeline defined by the {{cssxref("animation-timeline")}}. This range can be restricted, or inset. Animation keyframes can be attached in reference to an animation attachment range, restricting the animation’s active interval to that range of a timeline, with the {{cssxref("animation-range")}} property, which is shorthand for {{cssxref("animation-range-start")}} and {{cssxref("animation-range-end")}}, in that order. | |
| By default, a keyframe animation's range is the same as the entirety of the timeline defined by the {{cssxref("animation-timeline")}}. This range can be restricted, or inset. Animation keyframes can be attached in reference to an animation attachment range, restricting the animation's active interval to that range of a timeline, with the {{cssxref("animation-range")}} property, which is shorthand for {{cssxref("animation-range-start")}} and {{cssxref("animation-range-end")}}, in that order. |
|
|
||
| The declaration `animation-range-start: entry 20%` represents the point in a view progress timeline from 20% of the way through the scroll port from the point where the subject element's top edge first starts to enter the scroll port. | ||
|
|
||
| ```css hidden live-sample___selector live-sample___range live-sample___range_both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| ```css hidden live-sample___selector live-sample___range live-sample___range_both | |
| ```css hidden live-sample___selector live-sample___range live-sample___range_both |
This is still in DRAFT mode!!!!