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

147
Visualizações
Scrolling image in block

How can i create scrolling image in display notebook with overflow notebook? Try with sticky notebook, but notebook image with shadow, and bg image doesnt overflowed.

I want it to stay background img inside the screen, but it doesn't work. Top point bg on top notebook when its reveals. Maybe some one have examples?

.project-rules__note {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 600px;
  }
.project-rules__note  > img {
    width: 53vw;
    height: auto;
    position: sticky;
    top: 0;
  }
.project-rules__note  .container {
    width: 68vw;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 2;
   

  }
.project-rules__note  .note {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    }

 .project-rules__note   .bg-note {
      width: 68vw;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      z-index: 1;
      top: 0;
      left: 50%;
      transform: translate(-50%, 0);
      }

.project-rules__note      .bg-note::before {

      }

.project-rules__note     .bg-note img {
        width: 100%;
      }
    

 .project-rules__note   .book {
      width: 100%;
      height: auto;
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;


      z-index: 2;
      }

.project-rules__note .book     img {
        width: 100%;
        height: auto;
        max-height: 100vh;
      }
<div class="project-rules__note">
            <div class="container">
                <div class="note">
                    <div class="img book">
                        <img src="https://jukachu.github.io/Lottery-cards/src/notebook.png" alt="">
                    </div>
<!--                    <div class="img bg-note">-->
<!--                        <img src="./img/bgnote.jpg" alt="">-->
<!--                    </div>-->
                </div>
            </div>
            <img src="https://i.ibb.co/74d27jf/bgnote.jpg" alt="">

        </div>

enter image description here

about 4 years ago · Santiago Gelvez
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