Jump to content
Search Community

Fluxium

Members
  • Posts

    2
  • Joined

  • Last visited

Fluxium's Achievements

  1. Hey all, I've been playing around with the horizontalLoop() helper function and wanted to add some extra functionality. There is already the toIndex() function that you can call, that will scroll to a selected element, centering it in the container. How could I modify the code so that the item doesn't get centered but instead the left edge of the item is at the containers center? I was thinking about duplicating toIndex() calling it toIndexStart(), but then I'm not exactly sure what to change to achieve what I want. I'm sorry if this question is too much logic / JavaScript related. Appreciate any help! Thanks!
×
×
  • Create New...