svelte-transition

How to ensure local-only transitions when Svelte is reusing the parent dom element

怎甘沉沦 提交于 2019-12-24 03:49:11
问题 In Svelte, I have a component which is used to display items in two different lists. When those items are moved from one list to the other, they use a transition to animate in or out. However, I also have a way to filter what is displayed on the screen. Displaying a new set of items would use the same component, but with different data. In this case, I don't want the transition animation to occur. I assumed that adding the local modifier would do the trick, but it seems that Svelte isn't