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
Hello! I use Svelte 5
and I encountered a problem where when changing an object property that affects the inline style in the markup, the animate:flip directive does not respond to this change and does not animate the grid-column and grid-row properties, in the example I set the occupied area of the element via the toggleSize function
and the second question is that animate:flip also does not respond to changes in the property of the element, for example, if I want to set the gridColumn value by assigning it to it via js directly from the node link like this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I use Svelte 5
and I encountered a problem where when changing an object property that affects the inline style in the markup, the animate:flip directive does not respond to this change and does not animate the grid-column and grid-row properties, in the example I set the occupied area of the element via the toggleSize function
but if you use this approach, similar to svelte 4, then animate:flip beautifully animates blocks in the grid
and the second question is that animate:flip also does not respond to changes in the property of the element, for example, if I want to set the gridColumn value by assigning it to it via js directly from the node link like this
wrapperRef.style.gridColumn =
span ${prevColumn + 1};
How can I make it react and animate using animate:flip in both the first and second (more important) cases? Thank you
Beta Was this translation helpful? Give feedback.
All reactions