1 year ago

#349848

test-img

Markstar

How to restrict Svelte transitions?

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!

svelte

svelte-component

svelte-transition

0 Answers

Your Answer

Accepted video resources