Replies: 1 comment
-
This is what I do, create a wrapper View that accept the delay
Then in you can just use it like so
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've made custom entering animation i.e.
And am using it on my views via
This is working great, but I need to animate / enter each view with a different delay based on their index. I can easily add
withDelay
inside my custom animation, however am struggling how to make it dynamic, since such custom animation only takes pre-defined values liketargetGlobalOriginX
/targetGlobalOriginY
etc... nor can I really template anything due to it being aworklet
. Right now my only solution is to duplicate this animation 5 times and use hardcoded delay values, but I was wondering if it is possible to abstract this somehow.here is example with delays added, I'm trying to figure out how to make that
1000
delay be dynamic i.e1000 * elementIndex
, I can pass index in any form.Beta Was this translation helpful? Give feedback.
All reactions