Fading: optimize queries and only fade visible elements.