-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Similar to #3398
Here is a very basic setup to test for the crossfade transition:
https://svelte.dev/repl/7b633681d5a849968771c4fe9b7e7536?version=3.18.1
The duration is set to 2s so you have time to interrupt the transition by clicking a second time on the button.
On the first interruption, the transition is working as expected: the forward transition stops, and the backward transition starts where the forward transition stopped.
However, on second and following interruptions, the transition isn't smooth anymore. The crossfade fallback is called for the forward transition, and the backward transition doesn't start where the transition was stopped, but where it was stopped in the first interruption.
You will have to reload the script to observe the expected behaviour again.