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

238
Visualizações
Is there a way to stop autoplay on .gifs in a backgroundImage?

For a project I have a div which contains an image <div class="postCard" style="background-image: url(<?=$url ?? "./style/assets/placeHolder.png"?>)"></div>

As of now users can upload gifs as an background image as well, but it's not user friendly to play dozens of gifs at the same time. For this reason I want to disable autoplay of these .gifs.

I can't find a way to do this natively and the existing solutions such as libgif JS don't allow for background images.

is there any other way I can solve this problem without having a stock image to replace them or removed the BackgroundImage?

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