templates/home/slider.html.twig line 1

  1. <div class="swiper-container mySwiper" >    
  2.     
  3.     <div class="swiper-wrapper">
  4.         {% for slider in sliders %}
  5.         
  6.         <div class="swiper-slide swiper-slide1">
  7.             {% if slider.url|length >0 %} <a href="{{ slider.url }}"> {% endif %}
  8.             <div class="parallax-bg" style="background-image: url('{{ asset('download/slides/') }}{{ slider.photo }}');" data-swiper-parallax="-23%" ></div>        
  9.             <div class="content">
  10.                 <div class="title" data-swiper-parallax="-300">{{ slider.titre1 }} <span class="title2">{{ slider.titre2 }}</span></div>
  11.                 <div class="text slider-soustitre" data-swiper-parallax="-100">{{ slider.soustitre|raw }}</div>
  12.             </div>
  13.             {% if slider.url|length >0 %} </a> {% endif %}
  14.         </div>
  15.         
  16.         {% endfor %}
  17.     </div>
  18.     <div class="swiper-button-next"></div>
  19.     <div class="swiper-button-prev"></div>
  20.     <div class="swiper-pagination"></div>
  21. </div>