Jump to content
Search Community

summer9844

Members
  • Posts

    1
  • Joined

  • Last visited

summer9844's Achievements

  1. I have a 9x9 table with each td having a unique id. How can I get the x and y position of each td? Can I use gsap.getProperty for this? I have tried using the following code but the x and y positions returned are 0 and 0? this.grid[x][y].xPos = gsap.getProperty("#" + "gridBoxId-" + x + "-" + y, "x"); this.grid[x][y].yPos = gsap.getProperty("#" + "gridBoxId-" + x + "-" + y, "y"); I am looping through the grid to add the x and y coordinates to each grid object, but it isn't working as I expected?
×
×
  • Create New...