Have CSS handle fadein and fadeout transitions.