You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically I'm trying to add an error message under input, input is inside div which gets parent ref from auto-animate, and the div is inside flex container with 2 other elements. Both the message and the input are jumping inconsistently during animation.
Removing flex property from container solves it, as well as removing 2 other flex items.
I saw the tips about flexbox layouts, but the box expands nicely, so not sure if this is the case? If it is, how can I specify explicitly height, if I really need the box to grow in size?
I feel like I have same issue - flexbox and the items sometimes jump around.
Initially I've bumped into this when I was manually using el.append() and el.remove() so I went to create a svelte experiment to see if I was doing something wrong and ended up with minimal repro here: https://github.com/Thoronir42/autoanimate-jerk
Unfortunately flexbox requires 2 paints at the browser level if the size of the item transitioning in is unknown — the only good workaround to this is to have predefined sizes on the animating axis.
Basically I'm trying to add an error message under input, input is inside div which gets
parent
ref from auto-animate, and the div is inside flex container with 2 other elements. Both the message and the input are jumping inconsistently during animation.Removing flex property from container solves it, as well as removing 2 other flex items.
I saw the tips about flexbox layouts, but the box expands nicely, so not sure if this is the case? If it is, how can I specify explicitly height, if I really need the box to grow in size?
input.mp4
Basically my component, Tailwind + DaisyUI
The text was updated successfully, but these errors were encountered: