E
E
Egor Dovydenko2021-07-22 11:52:02
React
Egor Dovydenko, 2021-07-22 11:52:02

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" }
                ]
            }}
        />


The styles described above are displayed. There are no errors in the console. I am newbie.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aagzip, 2021-07-22
@Doktorjd

transform: `rotateY(45deg) rotateZ(45deg)`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question