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

Animation / new Transition "flyTo" #533

Open
schube opened this issue Apr 20, 2021 · 0 comments
Open

Animation / new Transition "flyTo" #533

schube opened this issue Apr 20, 2021 · 0 comments

Comments

@schube
Copy link
Contributor

schube commented Apr 20, 2021

I try to implement an online shop with DominoUI and if a user adds a product to the cart, I would like to have the product image "fly" & fade out to the cart symbol.

Something like
https://codepen.io/eurelis/pen/BpYzmE/
or
https://codepen.io/elmahdim/pen/tEeDn

Currently, I do not see how this could be achieved with the Animation or Transition class/enum.

Maybe something like

Animation.create(btnZumWarenkorb)
            .transition(Transition.FADE_OUT)
            .flyTo(targetElement) // or .flyTo(xCoordinate, yCoordinate)
            .duration(800)

Thank you!

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

No branches or pull requests

1 participant