Skip to content

[css-animations][css-transitions][css-gradients] Higher level CSS interpolation module #5617

@scottkellum

Description

@scottkellum

Abstract

Numerous CSS modules have interpolation as a part of them: keyframe animations, transitions, gradients, and the new color mix functions. Consolidating interpolation into a module that makes the behavior more consistent across these, while also providing a path to new features like gradient easing, would be more logical and consistent for CSS authors.

Pain points in CSS and CSS drafts

  • CSS gradient easing is a much requested feature [css-images] Add easing functions to color stops #1332
  • Unlike gradients, CSS keyframes require all relative units. Imagine if one could use 0.5s alongside 50% in keyframes.
  • Shifting scroll-linked animations to a more appropriate scroll-linked interpolation as it’s based on length typed measurements, not time.

New possibilities for the future

  • Interpolate styles based on viewport width (like interpolating breakpoints)
  • Possibly new ways to interpolate variable font settings

Related issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions