Answer the question
In order to leave comments, you need to log in
Why doesn't the transform: rotate property work?
Hello. The transform style on an element in a React app is not working.
<img
src={image}
alt="img"
style={{
width: 200,
height: 'auto',
transform: [
{ rotateY: "45deg" },
{ rotateZ: "45deg" }
]
}}
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question