How would you implement a Javascript function that fades out a DOM element, using CSS3 if available (but is still functional when CSS3 isn't available)?
I'd use something like Modernizr to detect if css3 transitions are available or not:
if(!Modernizr.csstransitions) {
// css3 isn't available
// maybe dealing with it in jQuery ?? or plain js
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With