animate-css-grid icon indicating copy to clipboard operation
animate-css-grid copied to clipboard

Inner content resizes immediately - incorrect transform scaling?

Open IWMTom opened this issue 4 years ago • 4 comments

Minimal reproducible example: https://codesandbox.io/s/hungry-chaum-jmmzi

Press the "change" button to see the issue.

The green "card" text expands to the full width of the end state and the container slowly expands to meet the size. The span element and the content container div are both set to width: 100% but the transform seems to be expanding the content to 2x its expected size which causes it to overflow.

If I set transform: none !important; to the content container div (child of the grid item) then the green box is consistently the same width as its container throughout the animation, but the text is skewed.

Any guidance (especially if I've misunderstood how the library works!) would be great, thanks in advance.

IWMTom avatar Jul 21 '20 10:07 IWMTom

We are having the same problem.

philipgiuliani avatar Nov 16 '20 13:11 philipgiuliani

I'm seeing a immediate jump similar to this just as the animation starts.

russellbart avatar Oct 13 '21 16:10 russellbart

same problem

xwchris avatar Jan 12 '23 13:01 xwchris

Any workaround so far?

Dominic-Preap avatar Dec 04 '23 05:12 Dominic-Preap