svelte-tiny-virtual-list icon indicating copy to clipboard operation
svelte-tiny-virtual-list copied to clipboard

Support for use of animate: directive

Open jeremyjacob opened this issue 3 years ago • 1 comments

I love the animate directive and Svelte's flip function. Is there a way to use that with the VirtualList?

jeremyjacob avatar May 26 '22 01:05 jeremyjacob

I'm guessing you mean something like this:

<!-- When `list` is reordered the animation will run-->
{#each list as item, index (item)}
	<li animate:flip>{item}</li>
{/each}

And it might be possible, there's an #each-directive inside the component after all, but I don't have many hopes that it works well... I'll try it out!

jonasgeiler avatar May 26 '22 06:05 jonasgeiler