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

87
Views
How to clone element and then fadeOut and remove?

I'm trying to leave a trail to my cursor with an image and I would like to make it fade before removing it.

I'm currently doing this :

$('#cursor').clone().appendTo(".trails").delay(2000)
        .queue(function() {
            $(this).remove();
});; 

If I do

$('#cursor').clone().appendTo(".trails").delay(2000)
        .queue(function() {
           $(this).fadeOut(500);
});; 

This doesn't make anything fadeOut

Also I tried doing

$('#cursor').clone().fadeOut(500).appendTo(".trails").delay(2000)
        .queue(function() {
            $(this).remove();
});; 

But this make all clone fadeOut because of the reference

Any solution to this ?

about 4 years ago · Juan Pablo Isaza
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!