Added transition effect for the responsive layout