<?php if ( have_rows('slider') ): ?>
<div class="homebanner-swiper swiper-container">
<div class="swiper-wrapper">
<?php while( have_rows('slider') ) : the_row();
$sliderBackground = get_sub_field('slide-background');
$sliderTitle = get_sub_field('slide-title');
$sliderDescription = get_sub_field('slide-description'); ?>
<div class="swiper-slide">
<img class="swiper-slide--img" src="<?php echo $sliderBackground ?>" alt="" />
<div class="swiper-slide--container">
<h1><?php echo $sliderTitle ?></h1>
<p><?php echo $sliderDescription ?></p>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="swiper-pagination"></div>
</div>
<?php endif; ?>