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

161
Visualizações
Overflow hidden on bottom of image

Im trying to hide the bottom of the girl image when the 3D background is triggered. I tried to add the overflow: hidden; to the test-imgplace class and it doesn't look right.

Is there a better way to fix it?

See what I did on JSFIDDLE

.card .image {
  height: 275px;
  width: 183px;
  background-size: cover;
  background-position: center center;
}

.imgtest {
  position: absolute;
  z-index: 1;
  text-align: center;
  top: 0;
  left: 100px;
  border: solid 1px;
  pointer-events: none;
}

.test-imgplace {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.card .text {
  height: 20%;
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 50px;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
}

.card {
  width: 183px;
  height: 275px;
  margin: auto auto;
  background: #383030;
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
}

.card-content {
  transform-style: preserve-3d;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hover-in {
  transition: .3s ease-out;
}

.hover-out {
  transition: .3s ease-in;
}

.card-hover {
  margin: 0;
}
<div class="test-imgplace">
  <img src="https://christianluneborg.com/imgs/test-woman.png" class="imgtest">
  <div class="card-hover">
    <div class="card">
      <div class="card-content">
        <div class="image" style="background-image: url(https://christianluneborg.com/imgs/test-woman-bg.png);"></div>
      </div>
    </div>
  </div>
</div>

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