Having the images specced in an attribute is a bit too React-ish. Consider using slots instead. This would also give to possibility to use
and for assigning srcset for responsive images or using WebP with fallback etc :)
<ken-burns-carousel>
<slot>
<img src="https://source.unsplash.com/Qh9Swf_8DyA" alt="">
<img src="https://source.unsplash.com/O453M2Liufs" alt="">
</slot>
</ken-burns-carousel>
For img elements getting the imageURL could be done like so: https://codepen.io/enjikaka/pen/mYKWGP?editors=0010
Having the images specced in an attribute is a bit too React-ish. Consider using slots instead. This would also give to possibility to use
and for assigning srcset for responsive images or using WebP with fallback etc :)
For img elements getting the imageURL could be done like so: https://codepen.io/enjikaka/pen/mYKWGP?editors=0010