Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript CSS transitions don't work on newly appended elements. Reply To: CSS transitions don't work on newly appended elements.

#177788
__
Participant

I’ll make them anonymous when I’m finished. But, I’m not sure if I’ll have to ref in another part or not. That’s why I named them.

Either way works. As a side note, I have stopped using named functions entirely in favor of assigning anon functions to variables/ properties.

var phoneCheck = function(){
    /*  do phoneCheck stuff  */
};

This allows you to reference them, plus is better for modular code (managing dependencies, scope, etc.).