Jump to content
Search Community

Helper function Seamlessly loop / Snap to middel possible

Sascha Fincher test
Moderator Tag

Recommended Posts

Hi everyone,

 

I am trying to create a dragabble seamless loop and came across the helper function in the docs. However in my case the items in the loop are of different widths and I  always want the item that is closest to the middle of the wrapper to snap exactly in the middle position. I played around with the configuration object, but I cannot get it to work.

 

Is this at all possible with the current implementation of the helper function? 

See the Pen ZEaNWpN by HankJamesMoody (@HankJamesMoody) on CodePen

Link to comment
Share on other sites

Hi Blake,

 

the wrap seems to work just fine, even with different width’s elements.

I just did not manage to center the snap.

Would be great if someone could make that modification. I tried to modify the function myself for two days, but had to accept that this is a little above my capabilities 🤷‍♂️

Link to comment
Share on other sites

  • 7 months later...

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...