Skip to content

fix: add scaleX animation instead of width#20

Open
ajth-in wants to merge 1 commit intovercel:mainfrom
ajth-in:fix/scaleX-transition
Open

fix: add scaleX animation instead of width#20
ajth-in wants to merge 1 commit intovercel:mainfrom
ajth-in:fix/scaleX-transition

Conversation

@ajth-in
Copy link

@ajth-in ajth-in commented Jan 19, 2025

This PR updates the animation from using the width property to the transform:scaleX property, as transform is more performant and does not trigger layout recalculations as in with width. All previous 0-100 calculations have been converted to a 0-1 scale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant