Target xValue on horizontal scroll with Javascript

Having some issues with horizontal scrolling on the CMS side. Obviously the whole page is dynamic based on content so I need to adjust the xValue of the scroll interaction based on the how “wide” the page is. I have the math done already just can’t figure out how to update the value with javascript.


https://preview.webflow.com/preview/djco?utm_source=djco&preview=3e7dba7f61bf3b04b4533f8f3e96eddf

https://djco.webflow.io/