Pregunta

Estoy tratando de obtener un buen efecto de superposición con un control deslizante usando EasySlider 1.7. No solo debe incluir imágenes, sino también texto que representa la imagen. Ahora tengo problemas para evitar el texto en la página donde la necesito.

http://intranet.streamflame.com

Esa es la página de inicio, la sección donde ve la superposición negra en la imagen de desplazamiento principal es donde se supone que el texto se sienta. Ahora, si me deshago del código para desplazar el texto, el texto se sienta donde se supone que. Sin embargo, tan pronto como agrego el script para desplazar el texto al mismo tiempo, parece que el texto desaparece.

Aquí está mi código.
html:

<div class="filler">
   <div class="filler-picture">
   <div class="filler-img">
   <ul>{% for project in rotations %}
        <li><img src="{% thumbnail project.key_image.get_absolute_url 559x361 crop,upscale %}" width="559" height="361" alt="{{ project.title }}" /></li>
     {% endfor %}
 </ul>
</div>
<div class="filler-mask">
 <img src="{{ MEDIA_URL }}img/filler.png"  alt="filler" />
</div>
<div class="filler-text">
 <ul>
 <li>
  <span class="filler-text-left">WaterTiger</span>
     <span class="filler-text-right">Project watertiger is a test project whilst we get all the site together, call it a filler if you must, there is no project watertiger your only dreaming.</span>
 </li>
 <li>
  <span class="filler-text-left">Dragonfly</span>
     <span class="filler-text-right">Project Dragonfly is a test project whilst we get all the site together, call it a filler if you must, there is no project dragonfly your only dreaming.</span>
 </li>
 <li>
  <span class="filler-text-left">Spacemunch</span>
     <span class="filler-text-right">Project Spacemunch is a test project whilst we get all the site together, call it a filler if you must, there is no project Spacemunch your only dreaming.</span>
 </li>
</ul>

css:

.filler {

     position: relative;
      margin-left:20px;
      height:361px;
      width:559px;
      float:left;

}

.filler-mask {
    position: absolute;
    left:0; top:0;
    height:361px;
    width:559px;
    z-index: 100;
}

.filler-img{
    position: absolute;
    left:0; top:0;
    height:361px;
    width:559px;
    z-index: 50;

}

.filler-text {

      width: 558px;
      height: 68px;
      position: absolute;
      z-index: 200;
      color: #fff;

}

.filler-text li {

      list-style-type: none;
      z-index: 1000;

}

.filler-text-left {

      width: 169px;
      float: left;
      height: 48px;
      padding: 10px;
      font-size: 18pt;
      font-weight: 100;

}
.filler-text-right {

          width: 340px;
      float: right;
      height: 48px;
      padding: 10px;
      font-size: 10pt;
}

easyslider javascript:

<script type="text/javascript">
       $(document).ready(function(){ 
        $(".filler-text").easySlider({
         auto: true,
         continuous: true,
         speed: 1800,
         pause: 5000,
         nextId: "next2",
         prevId: "prev2"
        });
        $(".filler-img").easySlider({
         auto: true,
         continuous: true,
         speed: 1800,
         pause: 5000,
         nextId: "next2",
         prevId: "prev2"
        });

       });
</script>

Nota: He intentado colocar el script para el texto debajo del script para la imagen, esto no tiene cambios en el aspecto de él.
Esperando que alguien pueda ayudar.

¿Fue útil?

Solución

Agregar efecto deslizante al texto de llenado establece sus propiedades en jQuery

Es el resultado de su LI dentro del texto de relleno que no toma su altura.Por lo tanto, la primera solución es hacer que el LI tome su altura agregando ClearFix en modo ADVOTE o simple:

<div style="clear: both;"></div>

después de cada

<span class="filler-text-left">WaterTiger</span>
<span class="filler-text-right">Project watertiger is a test project whilst we get all the site together, call it a filler if you must, there is no project watertiger your only dreaming.</span>

así que parece:

<span class="filler-text-left">WaterTiger</span>
<span class="filler-text-right">Project watertiger is a test project whilst we get all the site together, call it a filler if you must, there is no project watertiger your only dreaming.</span>
<div style="clear: both;"></div>

y finalmente administrar la posición superior de su relleno-texto

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top