Skip to content

[css-height] Is it possible to improve browser rending performance of animating height? #849

Closed
@sdras

Description

@sdras

https://www.w3.org/community/webed/wiki/CSS/Properties/height

For the most part, people animating on the web can use transforms and opacity to reduce layout repaint triggers. Animating height is one of the most common use-cases that I've encountered where a transform (even scale) doesn't quite work without a lot of hacks that are fairly precariously balanced. (I can list the workarounds I've found if you would find it helpful).

Is there any possible way to improve the rendering of height or max-height? I believe it would be useful for developers to have a way to animate height without incurring a lot jank- for accordions, dropdowns, and the like. Any consideration here is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions