Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to mount specific animation to an element #1

Open
wheregmis opened this issue Dec 22, 2024 · 1 comment
Open

Need a way to mount specific animation to an element #1

wheregmis opened this issue Dec 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@wheregmis
Copy link
Owner

wheregmis commented Dec 22, 2024

For something like

for (id , url) in favorites.suspend()?.cloned().unwrap() {
                    div { class: "favorite-dog", key: id,
                        img { src: "{url}" }
                        button {
                            onclick: move |_| async move {
                                crate::backend::remove_dog(id).await.unwrap();
                                favorites.restart();
                            },
                            "❌"
                        }
                    }
                }

I need to have delay animations for each children, creating those variables and running it is different, So we need to have something where i can bind the animation for each element with some different property with some delay like delay + id * 100. Currently i have not figured out a way to achieve this on dioxus. Will try to work after the comments or solution from the mentioned below issue

@wheregmis wheregmis added the enhancement New feature or request label Dec 22, 2024
@wheregmis
Copy link
Owner Author

DioxusLabs/dioxus#3462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant