Forums

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

Home Forums CSS How to fade from one div to another Reply To: How to fade from one div to another

#265181
Beverleyh
Participant

I am using jQuery to change the CSS rules of div1 to noOpacity

Looks like you’ve forgotten to include your JavaScript in the demo.

how can I make it also have the hidden CSS rule once the transition is over and then trigger then CSS change for div2?

With setTimeout()? https://www.sitepoint.com/jquery-settimeout-function-examples/