Reputation:
I have an svg image
i want to rotate it so that it looks like this:
tried adding css:
svg {
transform: rotate(60deg);
}
but its not working.
Upvotes: 1
Views: 319
Reputation: 97272
The image in your question is not rotated, it's flipped (mirrored) horizontally. You can achieve this by scaling by a factor of -1 on the X axis:
svg {
transform: scaleX(-1)
}
Upvotes: 3