Streaming live at 10am (PST)

Dynamically Set xValue on scroll interaction

Hey all,

I’ve got my site using horizontal scrolling, looking great so far. The issue I am having is on category pages I need to set the vw of the content based on how many divs are inside the content. I have all the math working correctly but in order to get the scrolling to work I have to adjust the interaction dynamically.

I know I can create each page individually but it’d be awesome to make it all dynamic.

Bet racking my brain all day on how to target the xValue in the interactions via javascript with no luck.

Here is my public share link: