Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

258
Visualizações
Fixed image that changes dynamically with text scroll?

I'm trying to recreate an effect that I'm guessing employs some combination of CSS/JS:

I want a fixed position image to stay sticky on the left side of the page while paragraphs of text scroll to the right of it. The image would change depending on which paragraph of text is visible in the browser window.

Recording of a website that does this well: https://www.loom.com/share/39a65ff6d668485a89b1e2e25b2a11c9

In this example the text also changes color depending on where it is in the window. Any help or insight into how simple/complex this is would be appreciated!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can try using Element.getBoundingClientRect(), it's a method that returns a DOMRect object providing information about the size of an element and its position. Reference: getBoundingClientRect

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda