You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to show the Contents to appear with sliding animation in real time (only when I receive the data).
Imitating the problem:
In the code below, I have added a column named "left_column" and appending the new Container controls to it with some pre-defined "offset" and "animate_offset" values and then updated the "left_column".
Now on the very next line, I change the "offset" value of the Container to something else, to animate it.
Expected result should show the animation of all 3 containers, but the result shows either no animations or inconsistent animation by animating any one or two of the containers only.
But, when I add (or uncomment in the below code) "sleep(0.1)" statement just after every left.col.update() (after appending a new Container control to "left_column"), all 3 animations seem to work as expected.
So what could be the better approach to acheive this without using sleep() ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to show the Contents to appear with sliding animation in real time (only when I receive the data).
Imitating the problem:
In the code below, I have added a column named "left_column" and appending the new Container controls to it with some pre-defined "offset" and "animate_offset" values and then updated the "left_column".
Now on the very next line, I change the "offset" value of the Container to something else, to animate it.
Expected result should show the animation of all 3 containers, but the result shows either no animations or inconsistent animation by animating any one or two of the containers only.
But, when I add (or uncomment in the below code) "sleep(0.1)" statement just after every left.col.update() (after appending a new Container control to "left_column"), all 3 animations seem to work as expected.
So what could be the better approach to acheive this without using sleep() ?
CODE:
Beta Was this translation helpful? Give feedback.
All reactions