Replies: 3 comments
-
Hi @Parveshdhull, I have been trying to think about how to reimplement the zoomable-image file using AFAIK we can use derive values to animate values that depend on each other, and that would always animate together (like a bar's width, and maybe also bg-color, can always depends on the progress). Here in this file the main animations we have are: |
Beta Was this translation helpful? Give feedback.
-
Hi @OmarBasem, So, first, let me give you some detail on how I understand the use of derived value. I think of them as action-reaction based. For example, in the original comment, there was clearly a single action (changing of orientation) and it was always affecting all those shared values in the same way. So we can just use their orientation shared value and others as derived value. About the zoomable-image file, I didn't quite look into how If it is clear that the same concept doesn't work here, then feel free to skip refactoring for this file and we can only refactor |
Beta Was this translation helpful? Give feedback.
-
@Parveshdhull that's right, I think of them the same way. In the case of zooming and panning, it is a series of different actions, happening over a period of time, outputting unrelated events, so I believe that does not apply here. As for the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions