I wrote a callback (I believe it’s called) like this:
hugeFadeIn();
It’s a simple code to fade in some content so that I don’t reuse the same code over and over again.
I then wanted to execute some code after hugeFadeIn finishes…
So I did this:
hugeFadeIn(){
//la la la
});
And that was wrong, so I did this:
$(hugeFadeIn(){
//la la la
});
And I’m still getting errors. What am I doing wrong? Thanks everyone 🙂
Edit
As requested, the body of the hugeFadeIn function:
function hugeFadeIn() {
$("#huge-loader").fadeIn("fast");
}
If you want to run something after
hugeFadeInfinishes, you need to pass your callback in.(If
hugeFadeIndoes the fade itself and doesn’t rely on calling something that itself takes a callback.)Edit after OP edit.