Problem: https://vimeo.com/194525097
Code: https://gist.github.com/banil-la/68e3d6e2fbefa7e1689ca3988268f82c
As you can see in clip from vimeo,
White panel have a three state.
- Hidden at Y=“100%”
- Shown at Y=“70%”
- Shown at Y=“0%”
(exactly, not using ‘Percent’ value)
There is no problem with sequential progress(1 -> 2 -> 3 -> 2 -> 1).
However, the problem occurs if it is not sequential.
I expect when click a show panel button, the white panel move to step2, after switching from step3 to step1 immediately.
But in my code, It’s not. white panel move to step3 directly.
How could i solve it?