Forums

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

Home Forums JavaScript Fade Effect Reply To: Fade Effect

#188758
Paulie_D
Member

I’m thinking what you are actually after is two effects..one to fade out the existing text and another to fade it in.

What you have now, when the class is applied, is it jumping immediately to 0 opacity and then fading in.

Also, you’re changing the text as soon as the class is applied…without enough time for the fade to complete the transition to 0.

So what I think you want is start the fade out…at the point the opacity is 0 (say 50% through the cycle) change the text and then fade it back in again.