Create directive for fading main page during search.