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

[css-transitions][css-values][web-animations] Where should animated property type definitions live #338

Closed
birtles opened this issue Jul 22, 2016 · 3 comments

Comments

@birtles
Copy link
Contributor

birtles commented Jul 22, 2016

We currently define a number of animatable property types in CSS Transitions. These definitions specify what it means to interpolate values of each type. New specs that define new types (e.g. transform lists, filter lists, shapes etc.) are expected to provide their own definitions of interpolation.

Web Animations extends the set of required definitions to include not only interpolation, but also addition, accumulation and distance. It also provides some default definitions for these and a very incomplete set of basic animation types.

In order to implement features like additive animation or paced animation we need to fill out the definitions of addition / distance for many of these types. In general they're not too hard and SVG provides a starting point since addition and pacing are animation features originally used in SVG. Nevertheless, the definitions need to be written up somewhere.

The question is, where do these definitions belong? For now let's assume that specs that introduce new types will provide their own definitions along with the new type, and let's limit the discussion to existing types like length etc.

Some options are:

  • Add them to CSS Transitions — feels odd to add these features in when CSS Transitions doesn't use them (or at least not yet, and won't likely use them in the near future, although CSS Animations might)
  • Add them to Web Animations — probably involves copying all the interpolation definitions over from CSS Transitions. This somehow seems a little odd for me. It seems like Web Animations should probably just be the model and these definitions should belong in a purely CSS spec.
  • Add them to CSS Values (Level 4?)
  • Create a new "Animated property types" spec

I spoke to @dbaron yesterday who suggested the last two possibilities. @tabatkins @fantasai @shans I wonder if you have any suggestions / preference?

@shans
Copy link
Contributor

shans commented Jul 25, 2016

I have a weak preference for adding them to CSS Values level 4, but I'm OK with creating a new specification too.

@tabatkins
Copy link
Member

I like having them in V&U. It cuts the Gordian knot of remembering whether they're in Transitions or Animations.

@birtles
Copy link
Contributor Author

birtles commented Oct 15, 2018

This has now been moved to CSS Values and Units Level 4.

@birtles birtles closed this as completed Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants