Skip to content
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

Transitions on specified discrete properties #825

Closed
1 task done
josepharhar opened this issue Mar 15, 2023 · 3 comments
Closed
1 task done

Transitions on specified discrete properties #825

josepharhar opened this issue Mar 15, 2023 · 3 comments
Assignees
Labels
Missing: explainer Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review Topic: CSS Venue: CSS WG

Comments

@josepharhar
Copy link

こんにちは TAG-さん!

I'm requesting a TAG review of Transitions on specified discrete properties.

Allows transitions of discrete properties to be started on properties explicitly listed in the transition-property list. These transitions run using the same logic as an animation on those properties performing a flip at 50% by default but can be customized through the use of the transitionstart event and web-animations-1 APIs for modifying transition animations.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: We are trying to ship this in Chrome 114 which branches on April 20th and goes to stable on May 30th
  • The group where the work on this specification is currently being done: CSSWG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): CSSWG
  • Major unresolved issues with or opposition to this specification: none
  • This work is being funded by: Google

We'd prefer the TAG provide feedback as (please delete all but the desired option):

💬 leave review feedback as a comment in this issue and @-notify [github usernames]

@LeaVerou
Copy link
Member

Hi there, we noticed an explainer is missing. Could you please update the request with an explainer?
You may find the Explainer Explainer helpful.

@LeaVerou LeaVerou added the Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review label Mar 29, 2023
@josepharhar
Copy link
Author

Here is an explainer which explains the motivation for discrete property animation in context with other features, it is the first item in the list: https://github.com/chrishtr/rendering/blob/master/entry-exit-animations.md

The CSSWG issue doesn't provide a very concise example, so here is one:

#target {
  transition: font-family 1s, color 1s;
  font-family: serif;
  color: blue;
}
#target.animated {
  font-family: sans-serif;
  color: green;
}

Without this feature, font-family will always transition immediately as soon as animated is applied to #target. With this feature, the font-family value will switch halfway through the transition and can also be precisely controlled with a @keyframes rule.

@josepharhar
Copy link
Author

This feature is now handled by #829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing: explainer Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review Topic: CSS Venue: CSS WG
Projects
None yet
Development

No branches or pull requests

4 participants