Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Animate height resize on container with dynamic content

$
0
0

I am new to svelte and I was playing with the svelte/animate and svelte/transitions modules. The main question is how to animate container height when new content is added/removed.

I was trying a few approaches using tweened from svelte/motion but I can't seem to find the right solutions unless I do some shenanigans including wrapping div with overflows.REPL- use the counter to load/unload more elements to see the issue when row gets removed/added

As I said I am quite new to Svelte5. Hence, I am not quite sure if I am using svelte/animate and svelte/transitions correctly, if anyone could give a little bit of explanation on these two and when to use them, it would be greatly appreciated.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>