Fix Bug: image and container width are both 0
Fix: delay setting style of transition