Add css transitions for layout blocks