Jump to content
Search Community

VBMP

Members
  • Posts

    1
  • Joined

  • Last visited

VBMP's Achievements

  1. Hi, I wondered if anyone could point me in the right direction, I feel like I'm very close to having a rather complex (IMO) horizontal scrolling site working rather smoothly thanks to GSAP and the community forums. So far, I've managed to complete 99% on my own but could do with a little help to solve one final issue that has me stumped. I have attached the above Codepen which provides a simple example of my current setup with the ScrollTo plugin animating the containerAnimation to the relevant section upon the anchor link click. (Located at the foot of the page.) However, I would like to also be able to animate to the relevant section on page load eg: https://www.example.com/#section-2 I have found an example of this working in a traditional vertical scroll (see below), but could do with some help integrating the below into the simplified horizontal scroll I have attached at the foot of the page. A bonus would also be updating the window location hash on the scroll position, but happy to save this for another time. https://codepen.io/GreenSock/pen/ExKNEXY Any help would be greatly appreciated. Thanks,
×
×
  • Create New...