Jump to content
Search Community

cajpoj

Members
  • Posts

    2
  • Joined

  • Last visited

cajpoj's Achievements

  1. Awesome, that works great. Thank you!
  2. Hi! I'm trying to animate the width of a div based on a user's cursor position with a mousemove function and GSAP's quickTo for performance's sake and smooth movement. As you can see in the pen, it is totally broken and sends some strange value on inspect to the box I want to animate. It works if I just use a clientX value (as commented out at the end of my function) and updating as a pixel value, but for my end goal I need % values to update the width of my div in my quickTo function. The variables I'm setting seem to be the proper values when I log them in the console, so I'm not sure what I'm missing here or how to properly pass a % value into my quickTo function
×
×
  • Create New...