-
Just like the printer demo, the sub pages are hidden outside the viewport.
change the
The hided pages will show when the window resizing: Is there any way to disable animation when resizing the window? |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Jul 8, 2024
Replies: 1 comment
-
There is no way to specificly disable animation when resizong, but i can come with a few ideas as a workaround:
So in code: (haven't tried it) // with state
PrintPage {
x: parent.width + parent.x + 2px;
states [ active when root.current-subpage == 1 : {
x: 0;
in { animate x { duration: 125ms; easing: ease; } }
out { animate x { duration: 125ms; easing: ease; } }
} ]
}
/// with intermediate property
PrintPage {
x: animation * (parent.width + parent.x + 2px);
property <float> animation: root.current-subpage == 1 ? 0 : 1;
animate animation { duration: 125ms; easing: ease; }
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
capvor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no way to specificly disable animation when resizong, but i can come with a few ideas as a workaround:
x
directly.So in code: (haven't tried it)