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 & animations #21

Open
LeaVerou opened this issue Jul 15, 2020 · 1 comment
Open

CSS transitions & animations #21

LeaVerou opened this issue Jul 15, 2020 · 1 comment
Assignees
Labels
✅ Has algorithm (1/3) An implementable algorithm for how to measure this stat has been described in the issue ✅ Has JS (2/3) JS has been written to calculate this stat ✅ Has SQL (3/3) BigQuery SQL has been written to calculate this stat. proposed stat Proposed statistic to study Section: Transitions & Animations

Comments

@LeaVerou
Copy link
Owner

LeaVerou commented Jul 15, 2020

  • Which properties are most commonly transitioned? How many of those are not iterpolatable?
  • Stats (avg, median, mode) about durations
  • Most common timing functions? Timing functions by property?
  • Common animation names
@LeaVerou LeaVerou added the proposed stat Proposed statistic to study label Jul 15, 2020
@LeaVerou LeaVerou changed the title CSS transitions CSS transitions & animations Jul 16, 2020
@LeaVerou LeaVerou added ⚠️ Needs SQL Needs SQL to calculate this stat ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs algorithm labels Aug 4, 2020
@LeaVerou
Copy link
Owner Author

LeaVerou commented Aug 22, 2020

Algorithm:

  • To find transitioned properties, inspect values of transition-property, and match values of transition by \s(d|r|[cr]?x|[cr]?y|[a-z-]{3,})\s. Exclude timing function keywords. Count incidence.
  • To find duration, inspect values of transition-duration, animation-duration, as well as the first <time> value in transition and animation.
  • To find timing functions, inspect values of transition-timing-function, animation-timing-function, as well as calls to steps() and cubic-bezier() and keywords (ease(-in)?(-out)?|linear|step-start|step-end) in transition and animation
  • For the animation name, it's easier to get it from rules with type: "keyframes", it's in rule.name.

I think we may need to drop timing functions by property, as it's hard to measure reliably in the general case.

@LeaVerou LeaVerou added ✅ Has algorithm (1/3) An implementable algorithm for how to measure this stat has been described in the issue and removed ⚠️ Needs algorithm labels Aug 22, 2020
@LeaVerou LeaVerou self-assigned this Sep 15, 2020
LeaVerou added a commit that referenced this issue Sep 15, 2020
LeaVerou added a commit that referenced this issue Sep 16, 2020
@LeaVerou LeaVerou added ✅ Has JS (2/3) JS has been written to calculate this stat and removed ⚠️ Needs JS Needs JS to calculate this stat labels Sep 16, 2020
@rviscomi rviscomi added ✅ Has SQL (3/3) BigQuery SQL has been written to calculate this stat. and removed ⚠️ Needs SQL Needs SQL to calculate this stat labels Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Has algorithm (1/3) An implementable algorithm for how to measure this stat has been described in the issue ✅ Has JS (2/3) JS has been written to calculate this stat ✅ Has SQL (3/3) BigQuery SQL has been written to calculate this stat. proposed stat Proposed statistic to study Section: Transitions & Animations
Projects
None yet
Development

No branches or pull requests

2 participants