Jump to content
Search Community

huymax

Members
  • Posts

    2
  • Joined

  • Last visited

huymax's Achievements

  1. thanks for replying, but I still don't understand that, could you fix on my example?
  2. Hi everyone, can anyone tell me why javascript offsetLeft, offsetTop does not match with gsap x,y? I have an example about fly to cart, on this link https://stackblitz.com/edit/js-bqhafu?file=index.js. When the user presses '+ Thêm', I clone an image from product's image, and get it's DOM offset top and offLeft, and assign those position to x,y of gsap. but there was some wrong, I don't know where the gsap relative is?
×
×
  • Create New...