Adds transition effect when home page images are changed.