Add a "flying"-animation when product is added to card

Topic summary

A user wants to implement a “flying” animation effect where products visually move into the cart icon after clicking “Add to Cart” on their Prestige theme store. They provided a reference example showing the desired behavior.

Proposed Solution:

  • Combination of CSS and JavaScript required
  • CSS @keyframes animations needed for the flying effect
  • Implementation complexity depends on scope:
    • Simpler if limited to product pages only
    • More complex calculations needed for cart icon targeting across different pages
  • YouTube tutorials available covering similar implementations

Status: Discussion remains open with initial technical guidance provided but no complete implementation steps yet shared.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hi,
I want to add an animation when a user puts a product to their cart. He shall click on the “add to cart” button and then the product should “fly” into the cart. Can someone guide me how I can implement this?
I am using Prestige theme.
Here you can see an example what I am talking about: https://morenutrition.de/products/zerup-zero-sirup?variant=41873660510372

Thanks!

You can implement this with css and js. It will take some calculations to make products fly exactly into the cart but if you just need it on the product page like the reference it will be a bit easier I guess.

And in css you will need to apply the flying animation using @keyframes animation css. There are few videos on YouTube on this as well.