You will know if the style sheet of the element you are operating contains the style you want.
In fact, what you are doing here is simply adding a class to the dom element. As long as the dom element has this class, it means that your react writing method is fine. It may only be a style problem.
This has nothing to do with react.
You will know if the style sheet of the element you are operating contains the style you want.
In fact, what you are doing here is simply adding a class to the dom element. As long as the dom element has this class, it means that your react writing method is fine. It may only be a style problem.
It really has nothing to do with react,
It’s just because your attribute is missing transition, an important attribute of css3 animation.
Document portal: http://www.w3school.com.cn/cs...
Later I found out that transform is not valid on inline elements. Thank you for your answers!