Skip to content

[drawer] Animating padding-bottom with transition causes performance issues #4063

@isacrasmusson

Description

@isacrasmusson

Feature request

Summary

The Drawer component currently animates padding-bottom using CSS transitions, which isn't hardware-accelerated. Using transform: translateY() would improve performance on Android through GPU acceleration.

Examples in other libraries

https://github.com/emilkowalski/vaul
https://github.com/viliket/pure-web-bottom-sheet

Motivation

Optimizing the drawer animation would improve mobile performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions