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

114
Vistas
How to use IntersectionObserver several times in different places

I have the following code which animates a section of my website (credit: https://www.youtube.com/watch?v=19jD-DcOBtQ&t=0s) I would like to add a new instance of this to animate another section of my site, with the class .team-container - how would I go about duplicating this for that section?

// JavaScript Document
const observer = new IntersectionObserver(entries => {
    entries.forEach(entry => {
        if(entry.isIntersecting){
        document.querySelectorAll(".animated")[0].classList.add("fadeInLeft");
        document.querySelectorAll(".animated")[1].classList.add("fadeInTop");
        document.querySelectorAll(".animated")[2].classList.add("fadeInRight");
    }
  })
})
observer.observe(document.querySelector(".about-container"));

about 4 years ago · Juan Pablo Isaza
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