Use layout transitions to make animation effects more smooth