How to restrict Svelte transitions?

181 Views Asked by At

Is there a way to restrict transitions? I have trouble articulating what I mean, so I have created a REPL illustrating the point:

  • When you switch to 'AnimatedTree', you have a tree with slide transitions.
  • When you then switch to another tab, you can see the tree transitioning out, which is (obviously) unwanted behavior.

Is there a way to fix this so that the transitions only apply in a certain environment?

Thank you in advance!

0

There are 0 best solutions below