Jump to content
Search Community

Luke Smith

Members
  • Posts

    1
  • Joined

  • Last visited

Luke Smith's Achievements

  1. I'm having an issue with TweenMax and ScrollTo (x) repeating scroll even if cursor isn't moving. Here it is in action on the live site: https://www.dunhillpartners.com/art/ Here's the code: $masonry_inner.on("mousemove touchmove", function(e) { if (e.clientX > $masonry_wrapper.width() / 2) { TweenMax.to($masonry_wrapper, 2, { scrollTo: { x: "+=175" }, repeat: 0, ease: Power2.easeOut }); } else { TweenMax.to($masonry_wrapper, 2, { scrollTo: { x: "-=175" }, repeat: 0, ease: Power2.easeOut }); } }); Everything else works, I just don't want to auto scroll when mouse isn't moving.
×
×
  • Create New...