Animation value dynamic from CMS

I have an infinite sideways animation that i’ve done by moving linearly from one end to another, and then instantly resetting to the inital position, this works well but the the value of the movement depends on the number of elements in the list. Its at 5 right now so I know, the value is 5* width of the div, is there anyway to make it so that the value is dynamic and when a new CMS entry is added, this animation value will update accordingly. I am not familiar with custom code on webflow but seems like this should be possible as data.length * width, or something like that


Here is my public share link: LINK
(how to access public share link)