So this is probably low on totem pole, but I imagine it would be a simple functional improvement that could especially help with integrating webflow with other js libraries.
I can manually set an object's custom attributes, but it would be nice if I could set that attribute to the value of a field from a collection item.
For example, swiper supports lazy loading of images but requires that you set image src to a data attribute, ie:
<img data-src="path/to/picture-1.jpg" class="swiper-lazy">
or, for background images:
<div data-background="path/to/picture-3.jpg" class="swiper-slide swiper-lazy"></div>
unfortunately, if I'm building the swiper DOM using a dynamic list, I can't access the field when setting the attribute, even though I can set the bg image directly from dynamic style settings.
many libraries (scrollr and others) require data attributes, being able to set them from collection fields could help integrating those libraries alot.
EDIT: Oh... btw here's the site I specifically would like this for: http://longwooddressageteam.com
The slider at the top is build from a collection of images to allow new images to be added easily.
the client loves how I have a history of the team, but at this point its 50 images long ... loading the page the first time is pretty slow and will only get slower in time. Lazy loading would be a perfect solution, but I can't do that without dynamic attributes. (actually it's close to the point I may abandon the collection and go back to a manually created and updated list of slides =/)