Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Elementos div flotantes pegajosos al desplazarse

Quiero hacer un elemento pegajoso y flotante. Básicamente, es como cuando estás viendo videos de YouTube en tu teléfono. El video sigue reproduciéndose en la parte superior, incluso si se desplaza hacia abajo en la pantalla. He probado la posición: sticky pero no funciona. ¿Cómo puedo hacer esto? Gracias por adelantado

 <div class="renungan-img-mobile feature-img" style="position: sticky;"> <div onclick="this.nextElementSibling.style.display='block'; this.style.display='none'"> <div class="image-wrapper"> <img src="noimage.png" style="cursor:pointer" /> <img class="play-button-renungan-mobile" src="noimage.png" alt="" loading="lazy"> </div> </div> <div class="youtube-video" style="display:none"> <iframe src="https://www.youtube.com/embed/XbxXgR_7EuI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> </div>
ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Necesitas establecer una posición para que se adhiera

 body { height: 4000px; }
 <div class="renungan-img-mobile feature-img" style="position: sticky; top: 50px;"> <div onclick="this.nextElementSibling.style.display='block'; this.style.display='none'"> <div class="image-wrapper"> <img src="noimage.png" style="cursor:pointer" /> <img class="play-button-renungan-mobile" src="noimage.png" alt="" loading="lazy"> </div> </div> <div class="youtube-video" style="display:none"> <iframe src="https://www.youtube.com/embed/XbxXgR_7EuI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> </div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!