Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

184
Vistas
¿Cómo hacer un efecto de superposición de bloque al desplazar JS?

Por favor, ayúdame a escribir un script que realice la siguiente tarea:
es necesario que al hacer scroll, llegando a la sección deseada en el layout, se corrija el primer bloque "Branding" y el segundo bloque "Comerciales" se encuentre con él en encienda el siguiente bloque "Estrategia" y así sucesivamente en esta sección (todos los bloques de la misma altura)

Enlace a Codepen

 <section class="services-section">
 <div class="container">
 <!-- Title -->
 <h2 class="h1 services-section__title section-title">Services</h2>

 <div class="row services-section__row">
 <!--Item 1 -->
 <div class="services-section-item services-item">
 <!-- Title -->
 <h3 class="services-item__title">Branding</h3>

 <!-- Description -->
 <div class="services-item__desc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
 </div>

 <!--Item 2 -->
 <div class="services-section-item services-item">
 <!-- Title -->
 <h3 class="services-item__title">Commercials</h3>

 <!-- Description -->
 <div class="services-item__desc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
 </div>

 <!--Item 3 -->
 <div class="services-section-item services-item">
 <!-- Title -->
 <h3 class="services-item__title">Strategy</h3>

 <!-- Description -->
 <div class="services-item__desc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
 </div>

 </div>

 </div>
</section>
almost 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

position: sticky;

 .services-item {
 padding: 40px;
 height: 250px;
 overflow: hidden;
 background-color: #eee;
 margin-bottom: 30px;
 position: sticky;
 top: 10px;
}

.services-section {
padding-bottom: 100vh;
}
 <section class="services-section">
 <div class="container">
 <!-- Title -->
 <h2 class="h1 services-section__title section-title">Services</h2>

 <div class="row services-section__row">
 <!--Item 1 -->
 <div class="services-section-item services-item">
 <!-- Title -->
 <h3 class="services-item__title">Branding</h3>

 <!-- Description -->
 <div class="services-item__desc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
 </div>

 <!--Item 2 -->
 <div class="services-section-item services-item">
 <!-- Title -->
 <h3 class="services-item__title">Commercials</h3>

 <!-- Description -->
 <div class="services-item__desc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
 </div>

 <!--Item 3 -->
 <div class="services-section-item services-item">
 <!-- Title -->
 <h3 class="services-item__title">Strategy</h3>

 <!-- Description -->
 <div class="services-item__desc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
 </div>

 </div>

 </div>
</section>

almost 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda