Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

99
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!