Streaming live at 10am (PST)

Dynamically Set xValue on scroll interaction

#1

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: https://preview.webflow.com/preview/djco?utm_source=djco&preview=3e7dba7f61bf3b04b4533f8f3e96eddf

Site
https://djco.webflow.io/work/branch