Skip to content

Having trouble applying a transition to the width property on an element using vw? #2354

Answered by lachlanjc
anmpog asked this question in Q&A
Discussion options

You must be logged in to vote

Glad you got it sorted out! Animating the width property generally isn't a good idea in CSS, as it'll cause layout recalculations. Here's one article I like about this topic: https://pqina.nl/blog/animating-width-and-height-without-the-squish-effect/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lachlanjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants