Animation is used to set animation properties. It's a shorthand property that contains six properties. Transition is used to set style transitions for elements. But the details are quite different. The transform used to rotate, scale, move, or tilt an element has nothing to do with the animation that sets the style. Translate is just an attribute value of transform, that is, move. Link: https://juejin.cn/post/1 Source: Digging Gold Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please indicate the source.Copy the code