I have a homepage carousel using http://flickity.metafizzy.co/ and the images are set as background images and lazyload.
What I need to do is to make them into responsive images, so that different images are served up for mobile, tablet and retina screens. But am struggling on how to do it in the code. Can anyone help?
<!-- Flickity carousel images -->
<div id="carousel-a" class="carousel">
{% if entry.carouselImage1.first() %}
<div class="carousel-cell" data-flickity-bg-lazyload="{{ entry.carouselImage1.first().url('homeCarouselLarge') }}"></div>
{% endif %}
{% if entry.carouselImage2.first() %}
<div class="carousel-cell" data-flickity-bg-lazyload="{{ entry.carouselImage2.first().url('homeCarouselLarge') }}"></div>
{% endif %}
{% if entry.carouselImage3.first() %}
<div class="carousel-cell" data-flickity-bg-lazyload="{{ entry.carouselImage3.first().url('homeCarouselLarge') }}"></div>
{% endif %}
</div>