Jump to content
Search Community

Clone grid elements and infinite translation based on mouse position

eviljeff test
Moderator Tag

Recommended Posts

Hi there,

I am trying to have an infinite grid scroll based on the mouse position. So that when the mouse is close to the edges, the images in the grid repeat and the scroll is infinite. I have created a pen following the thread below but I'm now stuck.

 

Would someone be able to help achieve the infinite loop functionality? Thanks

See the Pen PoemLdj by jeffceriello (@jeffceriello) on CodePen

Link to comment
Share on other sites

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I recreate this cool effect I saw on another site?" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

It probably boils down to adding some logic so that when the x/y hits certain thresholds, it shifts the rows/columns so that they get revealed in the direction you're going. Not exactly a simple thing, but doable. 👍

 

You are welcome to post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...