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

100
Visualizações
jsquery delay() not working on a set of a elements selected from class

Why doesn't the delay nor the fadeIn work in the below code?

I've tried wrapping it with the queue function to no avail - and I know the .middle-man class selection and .each is working OK because console.log(this) returns the correct a elements - so why is there no delay and no fade in? I've tried each on their own too, I've tried initial opacity = 0, hidden ... with the result always being the same: instant execution of the script and instant display of the elements!

$(".middle-man").each(function() {
  $(this).delay(1000).fadeIn(3000);
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<a class="middle-man" href="">
  <p>SOme Stuff</p>
</a>
<a class="middle-man" href="">
  <p>SOme Stuff</p>
</a>
<a class="middle-man" href="">
  <p>SOme Stuff</p>
</a>

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

0

The content is already visible that is why Jquery will not fade in. Try adding a style to the class to hide the links.

.middle-man {
  display: none;
}

OR inline

<a class="middle-man" href="" style="display:none;">
  <p>SOme Stuff</p>
</a>
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