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

214
Visualizações
Making Text disappear when it goes behind the nav bar / reaches the top

I have an angular website like this:

website

But when I scroll up, the text intersects with the navbar:

intersecting

I would like to have each line of text disappear as soon as it is closer than 4rem from the top. The text that is more than 4rem from the top shold still be readable.

My idea was to use a transparent div that matches the position and size of the nav bar an has the background photo and has a z-index lower than the nav bar, but higher than the text. But how do you make the photo align in this div?

Can you give me a hint how to achieve this?

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